AnsweredAssumed Answered

Transactional Email with dynamic Interest List

Question asked by 9d0e1f62e1ce76944d3b6a488d0833c992a11ea2 on Nov 4, 2017
Latest reply on Nov 5, 2017 by 9d0e1f62e1ce76944d3b6a488d0833c992a11ea2

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" ] )


#foreach ($cat in $myList)





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!