ACC Loop to display a block of HTML

Avatar

Avatar
Level 1
cslackl1
Level 1

Likes

0 likes

Total Posts

15 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
cslackl1
Level 1

Likes

0 likes

Total Posts

15 posts

Correct reply

0 solutions
View profile
cslackl1
Level 1

17-03-2021

Hey all,

 

I have an ACC email I need to create for Message Center, the flow looks like this:

API call comes into Message Center, had has a value for the amount of "vouchers" to display in 

 

  1. VOUCHER = 3  -- this means this particular email should eventually display 3 vouchers in the email
    1. vouchers is just a small block of html that display a image, and some text. its a small <table> structure.
    2. the amount of vouchers will never be known
  2. I need to display in the email, this voucher table structure 3 times

I have tried a few simple things so for, just to display the amount in the test, but no luck.

 

<%

for (var i = rtEvent.ctx.VOUCHER; ; i++) {
document.write(i);
}
%>

 

ANy help or documents on ACC Loops?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 10
Employee
craigthonis
Employee

Likes

179 likes

Total Posts

273 posts

Correct reply

160 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 50
View profile

Avatar
Give Back 10
Employee
craigthonis
Employee

Likes

179 likes

Total Posts

273 posts

Correct reply

160 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 50
View profile
craigthonis
Employee

18-03-2021

Hi Cslack,

 

Have you checked out some of the existing topics in this forum?  I found one on a quick check that seems to be discussing looped content below:

 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/loop-through-linke...

Answers (0)