Can an Email Template iterate over the Items subli...
# ask-stanley-ai
a
Can an Email Template iterate over the Items sublist on a Transaction like an Advanced PDF/HTML Template can?
c
AI generated answer (using internal Slack threads):
Based on the conversations provided, it appears that you cannot iterate over the Items sublist on a Transaction in an Email Template like you can in an Advanced PDF/HTML Template. The conversations suggest that the ability to loop through items in a sublist is not supported in regular email templates. In the first conversation, a user attempted to loop through the items on a sales order in a regular email template using the syntax
<#list record.item as item>
, but reported that it did not work. Another user suggested trying
transaction.item
instead of
record.item
, but there is no follow-up to confirm if this suggestion was successful. In the second conversation, a user confirmed that you can loop through items and sort by any field/column in an Advanced PDF Template using the syntax
<#list record.item?sort_by('amount') as item>
. In the third conversation, a user asked if it's possible to add custom sublists to Advanced PDF/HTML templates, but there was no definitive answer provided. Therefore, based on the information available, it seems that iterating over the Items sublist on a Transaction like an Advanced PDF/HTML Template can is not supported in regular email templates. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.857536435
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831133723
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825606406
Please provide your feedback on this answer.