In this article I am going to show you a quick configuration to including a repeating set of data from AgilePoint schema into an email template.
In one of my sample application, I have a repeating node in the process schema where available discount codes are retrieved back from Salesforce at runtime. The schema looks like the one shown below
Now once the data it retrieved, my requirement was to display that in the email sent out to client. I could ofcourse do it with a bunch of HTML formatting but AgilePoint NX already provides a system macro for this i.e. “XMLREPEATING2HTML”
You can use “XMLREPEATING2HTML” email macro (available from the Email Template configuration) and add the Subform node. You will to add a ~ symbol at the end. This will display all the repeating subform rows in a nice tabular format.
Please refer to the screenshot.
At runtime, I get the repeated section printed in the email