Hi
I’m using this endpoint to triggered automation workflow.
I sent events from frontend and backend.
Can I use params from event_properties
in email template?
Hi
I’m using this endpoint to triggered automation workflow.
I sent events from frontend and backend.
Can I use params from event_properties
in email template?
Hi @vldmrk ,
Thanks for posting on this community.
Did you have a look at this article: https://help.brevo.com/hc/fr/articles/209435165-Qu-est-ce-qu-un-soft-bounce-et-un-hard-bounce-pour-les-emails#tab-content-103 ?
Don’t forget to click on « You are not using a Brevo plugin » to see how to use the templating language.
Can you please keep the community members informed about the solution?
Hello Alexandre,
Unfortunately, I find that the documentation is not clear. In fact, I think you were referring to this page: https://help.brevo.com/hc/en-us/articles/4402386448530-Customize-your-emails-using-transactional-parameters#tab-content-121
In my case, I create events via the API, these events have this form:
{
« identifiers »: {
« email_id »: « xxx@example.com »
},
« event_properties »: {
« ORDER_DATE »: « 2023-11-24T12:09:10+01:00 »,
« FIRST_MAGAZINE_DATE »: « 2023-12-10T12:09:10+01:00 »,
« LAST_MAGAZINE_DATE »: « 2024-12-10T12:09:10+01:00 »,
« MAGAZINE_NAME »: « My Magazine »,
« MAGAZINE_CODE »: « MAG01 »,
« SUBSCRIBER_ID »: « 1234 »,
« SUBSCRIBER_TYPE »: « DIGITAL »,
« GROUPED_SUBSCRIPTION »: « NO »,
« SUBSCRIPTION_DURATION »: « 1Y »
},
« event_name »: « magazine_subscriptions »,
« event_date »: « 2024-02-06T20:59:23.383Z »
}
Is it possible to personalize with this data in an automation scenario?
For example, can I put in my email « Congratulations on your subscription to {{ magazine_subscriptions.MAGAZINE_NAME }} »?
Thank you in advance,
Jonathan
Hello
For me params.XXX
worked as written in the documentation.
Logs displayed the data send with « event_properties » like so:
event: {"data":{"name":"Some name", "price": "100€"}}
I wrote {{ params.name }}
to render « Some name » in my template.