Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Give Back
Level 1
juliusg73170081
Level 1

Likes

2 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back
Level 1
juliusg73170081
Level 1

Likes

2 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile
juliusg73170081
Level 1

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 (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 25
MVP
Venu_Reddy
MVP

Likes

163 likes

Total Posts

171 posts

Correct Reply

53 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
MVP
Venu_Reddy
MVP

Likes

163 likes

Total Posts

171 posts

Correct Reply

53 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
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

 

 

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1000
Employee
Sukrity_Wadhwa
Employee

Likes

143 likes

Total Posts

866 posts

Correct Reply

35 solutions
Top badges earned
Validate 1000
Validate 500
Validate 250
Validate 100
Validate 25
View profile

Avatar
Validate 1000
Employee
Sukrity_Wadhwa
Employee

Likes

143 likes

Total Posts

866 posts

Correct Reply

35 solutions
Top badges earned
Validate 1000
Validate 500
Validate 250
Validate 100
Validate 25
View profile
Sukrity_Wadhwa
Employee

10-03-2021

Hi @juliusg73170081,

Were you able to resolve this query or do you still need more help here? Do let us know.

Thanks!