Hello,
I try to get associated line items from deal I did this :
{% set line_items = crm_associations(deal.hs_object_id, "HUBSPOT_DEFINED", 19, "limit=50", "name,quantity", false) %}
{{ line_items.total }}
line_items.total work, it return the number of line items associated to my deal
Where I don’t understande is when I do this :
{% set line_items = crm_associations(deal.hs_object_id, "HUBSPOT_DEFINED", 19, "limit=50", "name,quantity", false) %}
{{ line_items.total }}
{% for item in line_items.results %}
<p>Product name : {{ item.name }} x {{ item.quantity }} Qty</p>
{% endfor %}
I got an error “Unable to validate template at this time. Please try again.”
I tried to show {{ line_items.results }} but same error.
It’s like I can loop trough results but can’t get data
Any idea or help ? It made me crazy haha