I am creating a note type activity by engagement API, but I want to use contact fields as token in the description so that it replaces the value on the bases of associated contact. Is it possible via API if yes can you please share the doc related to this or any guide?
I tried this but didn't help { "engagement": { "type": "NOTE" }, "associations": { "contactIds": [123] }, "metadata": { "body": "{{contact.firstname}} is member of this company." } }
May be I am not very accurate in this help but can you try to create an engagement directly on HubSpot with tokenized contact properties. And then try to run a API call to get the same engagement and then copy the same response in your poat request.
To populate the correct values for a contact, you can retreive them through the Contacts API, plug them into your note body, and then send the completed engagement payload to this endpoint.
Thank you for sharing things. My main concern is to use personalized token in the body of engagement API payload like I mentioned in the first comment.
Input: "body": "Engagemnet for this {{contact.firstname}}"