APIs & Integrations

Not applicable

How to add a timeline event for a deal

i am sending the following JSON payload

{
“id”:“516”,
“objectId”:“217606893”,
“objectType”: “DEAL”,
“eventTypeId”:“19374”,
“eventText”: “Example event DDD”,
“eventDesc”: “Registered for 6666”
}

using the call: https://api.hubapi.com/integrations/v1/56851/timeline/event

and getting the follwoing json back
{
“eventErrorEntityType”: “OBJECT_NOT_FOUND”,
“status”: “error”,
“message”: “Object not found vid : 217606893”,
“correlationId”: “6242e8ae-626e-48a6-b55b-f80160d6da16”,
“identifierName”: “vid”,
“identifierValue”: “217606893”,
“requestId”: “0bd02ba660e4360a7d708b33a09ec172”
}

what’s wrong here? didn’t see any documentation on how to create a timeline event on deal

0 Upvotes
3 Replies 3
Not applicable

How to add a timeline event for a deal

I did get it working, by default all event types created are for “CONTACT”, there’s no UI to change it to DEAL, you have to do it using the API

so make a call to: https://api.hubapi.com/integrations/v1/56851/timeline/event-types/{{event type id HERE}}

send this as the payload JSON
{
“objectType”: “DEAL”,
“applicationId”: 56851
}

I also entered an enhancement request on the forum for this, when you create a new event type, you can provide a name, but there should be a drop down to select contact, deal or company

0 Upvotes
Not applicable

How to add a timeline event for a deal

I’m having exactly same problem, the documentation is very confusing.

I created an event-type:
data = {
“name”:“NOVO BOLETO”,
“applicationId”:“36266”,
“objectType”:“DEAL”,
“headerTemplate”:“BOLETO HEADER”,
“detailTemplate”:“DETAILS OF BOLETOS”,
“objectId”: “203495592”
}

everything ok,
Now I want to add the event in the timeline of the Deal

data = {
“objectId”:203495592,
“applicationId”:“36266”,
“eventTypeId”:“19435”,
“id”:“33”,
}

And i got this response:
{
“eventErrorEntityType”:“OBJECT_NOT_FOUND”,
“status”:“error”,
“message”:“Object not found dealId : 203495592”,
“correlationId”:“bcce4314-82a0-4e8e-b39c-57a711779cdc”,
“identifierName”:“dealId”,
“identifierValue”:“203495592”,
“eventErrorEntityType”:“OBJECT_NOT_FOUND”,
“requestId”:“a21461e4cd4d65dd674eca3706efd853”
}

What I did wrong?

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

How to add a timeline event for a deal

Hi @Dileepa_Wijayanayake,

Was the event type you’re using created specifically for deals? Does a deal with dealId exist in your portal?

0 Upvotes