Getting Started

If you are new to the HTML document/canned email tag system, you can get an overview of tags, objects and loops here

Accessing The CartApprovalPhase Object

Access to this object is only available within canned emails under the Cart object. Start by finding the canned email type you are working with from the link provided below. Follow the chart for your specified canned email type to see if the object is accessible, and if so, where it is located.  You may need to use a combination of loops and/or chaining to access this object. 

HTML Tags by Email Type

Accessing The CartApprovalPhase Tags

Since the CartApprovalPhase object will always suffix the Cart object, we have included it within our examples. Assuming you have access to the Cart and CartApprovalPhase object, you must do one of the following:

1. If the tag is a list type, then the tag must be looped. The sub-object tags should be nested within the loop. 

2. If the object itself is a list type, then the object must be looped. The tags and/or sub-object tags should be nested within the loop.

3. If the object itself and the sub-object are list types, then both objects must be looped. The sub-sub-objects tags and/or objects should be nested within the loop.

The following are implementations of the CartApprovalPhase object that give access to the CartApprovalPhase tags: ApprovalPhases

Here is a chart displaying these use cases.

<!-- {{#each Cart.ApprovalPhases.TagName}} -->
        {{SubObjectTagName}} <br />
<!-- {{/each}} -->
<!-- {{#each Cart.ApprovalPhases.Approvers}} -->
        {{EmailAddress}} <br />
<!-- {{/each}} -->
<!-- {{#each  Cart.ApprovalPhases}} -->
        {{TagName}} <br />
<!-- {{/each}} -->
<!-- {{#each Cart.ApprovalPhases}} -->
        {{CartId}} <br />
<!-- {{/each}} -->
<!-- {{#each  Cart.ApprovalPhases}} -->
  <!-- {{#each  TagName}} -->
          {{SubObjectTagName}} <br />
  <!-- {{/each}} -->

<!-- {{/each}} -->

<!-- {{#each  Cart.ApprovalPhases}} -->
  <!-- {{#each  Approvers}} -->
          {{Barcode}} <br />
  <!-- {{/each}} -->

<!-- {{/each}} -->


Tag Name
Additional Sub Object
The tags relating to the contact who is an approver of this cart in this phase.ListContact Tags
CartIdThe id of the cart.Guid
The id of the approval phase.Guid
IndexThe number of the sort index of the approval phase.Whole Number