Forum Discussion
Elysha-CT
2 months agoSupporter
Help: Liquid logic, conditional messaging & nested custom attributes.
Hello! I need help understanding where i'm going wrong with my conditional messaging. Is it possible to search and dynamically pull a specific value from a nested profile using Liquid code in a Braz...
AllanHeoFNM
2 months agoVisionary
Elysha-CTYour Liquid code actually looks exactly how we would approach it. The only thing we can point out is the syntax:
{% assign found = false %}
{% for Partner_Name in {{custom_attribute.${Profiles}}} %}
{% if Partner_Name == "Onsi" %}
Your partner ID is {{custom_attribute.${Profiles}.Partner ID}}.
{% assign found = true %}
{% endif %}
{% endfor %}
{% unless found %}
You do not have a partner ID associated with this account.
{% endunless %}
Thank you for any help or suggestions you have!
Your syntax in line 2, custom_attribute.Profiles, might be the only issue actually.
Let us know if this worked!
- Elysha-CT2 months agoSupporter
Hi Allan, thanks for your help! Your corrected code means I'm not receiving any error codes, however Braze doesn't seem to recognise/pull in any values associated with nested profiles. I've brought this up to Braze Support; again thank you for your help!
- AllanHeoFNM2 months agoVisionary
Please keep us posted! There's a bit more we'd have to see to be able to help troubleshoot...
Are you able to share one full example of {{custom_attribute.${Profiles}}}?
Related Content
- 11 months ago