# Populate email with Custom Object

**URL:** <https://forum.mautic.org/t/populate-email-with-custom-object/26889>\
**Category:** General Discussion\
**Tags:** discussion\
**Created:** [January 28, 2023, 9:13am UTC](https://forum.mautic.org/t/populate-email-with-custom-object/26889 "2023-01-28T09:13:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goranculibrk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/goranculibrk/32/127_2.png) [@goranculibrk](https://forum.mautic.org/u/goranculibrk)\
**Post date:** [January 28, 2023, 9:13am UTC](https://forum.mautic.org/t/populate-email-with-custom-object/26889/1 "2023-01-28T09:13:24Z")

</div>

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.

Thanks

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 28, 2023, 8:00pm UTC](https://forum.mautic.org/t/populate-email-with-custom-object/26889/2 "2023-01-28T20:00:11Z")

</div>

Hi you can use the twig templates plugin for this:

> **[Twig Templates for Mautic](https://mtcextendee.com/marketplace/twig-templates-for-mautic/)**
>
> Buy now one domain license / 39€ – buy nowunlimited license / 169€ – buy now Buy now one domain license / 39€ – buy nowunlimited license / 169€ – buy now
