ACC Loop to display a block of HTML | Community
Skip to main content
Level 3
March 17, 2021
Solved

ACC Loop to display a block of HTML

  • March 17, 2021
  • 1 reply
  • 1441 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Craig_Thonis

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-linked-data-in-delivery-personalization-block/qaq-p/387373

1 reply

Craig_Thonis
Adobe Employee
Craig_ThonisAdobe EmployeeAccepted solution
Adobe Employee
March 18, 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-linked-data-in-delivery-personalization-block/qaq-p/387373

Level 3
March 19, 2021
Thank you! Helped alot!