Forum Discussion
FlorianGOrnika
2 months agoActive Member II
Find user in catalog
Hello everyone, I would like to send a message if the zipcode from a user is existing in a catalog. But I am not very technical. I have a catalog : id--zip_code--link ex: 14--13001--https://b...
- 2 months ago
Sorry my bad try this one:
catalogName: test
selection: zip{% catalog_selection_items test zip %}
{% if items[0].zip != blank %} not blank {% else %} blank {% endif %}
if you are not sure about the catalog liquid check in personalization
Gabriele
2 months agoPractitioner
Hi,
You should first of all make a selection inside your catalog for the attribute zip_code
https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/catalogs/selections/#liquid-in-selection-results
Once you have done that go back to your email and insert the liquid below.
catalog_selection_items - catalogName - selectionName
{% catalog_selection_items catalogName zip %}
{{ items[0].zip }}
Then you have to use the items0 in your if statement using if not empty then display the email otherwise abort.
Related Content
- 6 months ago