Timeline event created using REST API is not displayed properley


#1

timeline event on a contact not displaying correctly, I am sending the below payload

{
“id”:“506”,
“objectId”:101,
“eventTypeId”:“19374”,
“name”: “Example event type”,
“headerTemplate”: “Registered for xxx”
}

I have created “name” and “headerTemnplate” properties under the time line event

I have also used these properies in the header and detail templates

what shows in the timeline is:

what am I doing wrong here?


#2

Hey, looks like you are pretty close.

When defining your template the properties have to be defined with handlebars.

A handlebars expression is a {{, some contents, followed by a }}, you currently only have one set between your properties.

Change {name} to {{name}} and {headerTemplate} to {{headerTemplate}}

Hopefully that helps!

Adam Hass
Founder / CEO
AppLink.io


#3

Thanks Adam Hass, that works