Skip to main content
Solved

How to add event property attributes in email template?

  • January 3, 2024
  • 1 reply
  • 369 views

Forum|alt.badge.img+2

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

Best answer by Brian Turcotte

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

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • January 3, 2024

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