Forum Discussion
amyh
2 months agoCollaborator
Using a catalog to populate a push based on date
Hi. I created a catalog in Braze with 3 fields: id title preheader The id column is a date yyyy-mm-dd I then created a selection where id equals {{today}} I followed Braze support to use this...
SachinDhir
2 months agoSupporter
Try using code snippet like below:
{% capture currentDate %}
{{ "now" | time_zone: 'Australia/Sydney' | date: "%Y-%m-%d" }}
{% endcapture %}
{% catalog_items my_catalog {{currentDate}} %}
{{items[0].preheader }}
This should work as we are using successfully.
Make sure to update the time_zone to your environment's timezone.
Related Content
- 12 months ago