ACC Loop to display a block of HTML

Avatar

Avatar

cslackl1

Avatar

cslackl1

cslackl1

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

craigthonis

Employee

Avatar

craigthonis

Employee

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)