Transactional Email with dynamic Interest List
I am in the process of setting up a transactional email that will be triggered off an API call, I have everything working except for how to pass in values through the REST api and use that in my velocity foreach script.
For testing purposes, I have this:
#set( $myList = [ "Item 1", "Item 2", "Item 3" ] )
<ul>
#foreach ($cat in $myList)
<li>$cat</li>
#end
</ul>
I'm looking to replace $myList with the values I pass in through my api call, for reference i'm using the /rest/v1/campaigns/{ID}/trigger.json endpoint to add the lead to my smart campaigns.
Any help would be great!