APIs & Integrations

Not applicable

Timeline event created using REST API is not displayed properley

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?

0 Upvotes
2 Replies 2
ahass0227
Member

Timeline event created using REST API is not displayed properley

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

0 Upvotes
Not applicable

Timeline event created using REST API is not displayed properley

Thanks Adam Hass, that works

0 Upvotes