use fragment to loop data within a workflow and create dynamic email content

Avatar

Avatar

juliusg73170081

Avatar

juliusg73170081

juliusg73170081

18-02-2021

Hi,


I am trying to personnalize an email with data coming from enrichment activity (additional data) but all values are undefined.


I have created two queries :


a query fetching one specific user (me)

a query fetching all user who have received a delivery the day before today.


I have enriched my profil with the unique deliveries from the second query in an enrichment box. I have created a collection of 10 in that enrichment.


I would like to create a loop in order to display the collection in email delivery with a fragment by fetching this collection and displaying it as long as it it true.


My fragment look like :

<table>
<%
for each(query in context.targetData){
%>
<tr>
<td><%= query.query1 %></td>
</tr>
<%
}
%>
</table>


All values are undefined.


Please advise on how to proceed in order to fetch additionnal data in delivery in ACS Standard.


Julius

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

Venu_Reddy

MVP

Avatar

Venu_Reddy

MVP

Venu_Reddy
MVP

27-02-2021

Hi @juliusg73170081 ,

 

Create content block and initialize the attributes with a variable and call it in the email delivery.

 

Regards,

Venu