Solved

How to add event property attributes in email template?

  • 3 January 2024
  • 1 reply
  • 109 views

Badge +1

Hello,

I created a custom event from the API using a payload similar to this:

 


How do I use ‘grade’ and ‘description’ in an email template?

{{ grade }} or {{ event.grade }} or what should it be ?

Thank you

icon

Best answer by Brian Turcotte 3 January 2024, 22:08

View original

1 reply

Userlevel 7
Badge +36

Hi @Fernando!

If you’re triggering the email with the custom event, the syntax would be {{ event.grade }}. If you want to check that you’re using the correct syntax, you can click on the “Preview & test” button in the template editor:

Then, click on “Event”, find the event in the dropdown menu, and check the template to see if a preview value is displayed:

 

 

Hope that helps!

Best,

Brian

Reply