cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where is a complete list of available merge-tags for email templates?

Where is a complete list of available merge-tags for email templates?

Summary

Having difficulty converting email templates from XSL to the new merge-tags

Question

Where is a complete list of available merge-tags for email templates?

Answer

The tags are available in the UI when editing the template; they are not itemized in any other document. Actual data tags that were available in the XML templates are still be available in the new templates, but the [[FOR-EACH]] constructs are new and replace the XSL constructs.

Additional Information

For example, if you are specifically having problems locating the PartNumber within the Merge Tags, the XSL you may have used in a prior version of FNO would be as follows:

<xsl:template match="EntitlementLineItems">

<xsl:for-each select="EntitlementLineItem">

<tr>

<td><xsl:value-of select="@ActivationID"/></td>

<td><xsl:value-of select="Product/Name"/></td>

<td><xsl:value-of select="Product/Description" disable-output-escaping="yes"/></td>

<td><xsl:value-of select="PartNumber"/></td>

<td><xsl:value-of select="SeatCount"/></td>

</tr>

</xsl:for-each>

</xsl:template>

If your code for this in the new templating mechanism looks like:

[[FOR-EACH TAG="EntitledProduct"]]

<td>[[Name]]</td><td>[[Description]]</td><td>~~SJMPartNo~~</td><td>[[Count]]</td>

[[END FOR-EACH]]

But you're finding that you have to use a placeholder with an external call to a database connection to make this work, instead try [[PartNumber]] on the line item (like in the XSL template), not on the product.

In the existing Entitlement template, if you add the third line down (Partner Number: [[PartNumber]]) after ActivationID, you should get the part number on the line item.

In template:
?
[[FOR-EACH TAG="EntitlementLineItem"]]
ActivationID: [[ActivationID]]
Part Number: [[PartNumber]]
?

In email:
?
ActivationID: sepn-1
Part Number: PN1
?

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 08, 2018 05:10 PM
Updated by: