Populate email with Custom Object

Hey everyone.

I had the idea to create dynamic emails from Custom Objects. Creation of specific CO (Retreats) went smoothly, I can create segments based on the specific items and I can use token to display data in emails.

I had the idea to create email containing 5 latest items but I ran into limitation that I can only display data in text.

My question is, does email tokens have some sort of for loop?

I would like to loop through the results and output things like name, featured image and link to the website from custom items. That way I can create a grid in email that’s populated with latest entries in a nice layout with links to my website.


Hi you can use the twig templates plugin for this: