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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

ACC Loop to display a block of HTML

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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...

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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...