# Loop with object list not working

**URL:** <https://community.hubspot.com/t/loop-with-object-list-not-working/146639>\
**Category:** APIs & Integrations\
**Tags:** developer\
**Created:** [February 25, 2026, 9:05am UTC](https://community.hubspot.com/t/loop-with-object-list-not-working/146639 "2026-02-25T09:05:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hkampen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hkampen/32/44643_2.png) [@hkampen](https://community.hubspot.com/u/hkampen)\
**Post date:** [February 25, 2026, 9:05am UTC](https://community.hubspot.com/t/loop-with-object-list-not-working/146639/1 "2026-02-25T09:05:54Z")

</div>

Hi,

I send following data with the single send api:

```lia-code-sample
{ ... 
 "customProperties": {
 "products": [
 {
 "product_id": "PSKE",
 "product_name": "Managed Kubernetes",
 "price": "0,00&bnsp;€",
 "quantity": "1"
 }
 ],
... }

```

The template module contains following code:

```lia-code-sample
{% for item in custom.products %} 
 <tr>
 <td>{{ item.product_id }}</td>
 <td>{{ item.product_name }}</td>
 <td>{{ item.quantity }}</td>
 <td>{{ item.price }}</td>
 </tr>
{% endfor %}

```

All values in the e-mail are empty:

```lia-code-sample
 <tr>
 <td style="font-family:Arial, sans-serif; font-size:15px; color:#23496d; word-break:break-word"></td>
 <td style="font-family:Arial, sans-serif; font-size:15px; color:#23496d; word-break:break-word"></td>
 <td style="font-family:Arial, sans-serif; font-size:15px; color:#23496d; word-break:break-word"></td>
 <td style="font-family:Arial, sans-serif; font-size:15px; color:#23496d; word-break:break-word"></td>
 </tr>

```

Why?

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [February 25, 2026, 10:42am UTC](https://community.hubspot.com/t/loop-with-object-list-not-working/146639/2 "2026-02-25T10:42:04Z")

</div>

Hey @hkampen and Happy Wednesday!  
Thank you so much for connecting with the HubSpot Community!  
Let’s reach out to our amazing Top Experts! Hi @Anton, [@sylvain\_tirreau](https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366) and @evaldas do you have any suggestions to support @hkampen, please?  
Thank you all in advance for sharing your valuable insights!

Wishing you a wonderful day!  
Bérangère

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [February 25, 2026, 3:18pm UTC](https://community.hubspot.com/t/loop-with-object-list-not-working/146639/3 "2026-02-25T15:18:36Z")

</div>

Hi @hkampen,

Doesn’t look like there is anything wrong in your code examples.

One thing that comes to mind is to check whether the email template is [enabled for programmable content](https://developers.hubspot.com/docs/cms/start-building/features/data-driven-content/emails-with-programmable-content). This feature works only in Marketing Hub Pro or Enterprise - so that is something to check as well.
