Inserting an Event record and associating the What_Id and Participant through external fields
POST {{api-domain}}/crm/v2/Events
In this example, ExternalAccountID and ExternalContactID are the API names of the external fields in the Accounts and Contacts modules, respectively. What_Id in the Events module takes the Account's name as its value. participant
is a JSON object in the Participants array. We will reference these external values and insert an event.
Request Body
{"data"=>[{"External_Event_ID"=>"Event Kaizen 1", "Last_Name"=>"Contact 1", "Participants"=>[{"type"=>"contact", "participant"=>{"External_Contact_ID"=>"participant1"}}], "What_Id"=>{"External_Account_ID"=>"useraccount1"}, "$se_module"=>"Accounts", "Event_Title"=>"Kaizen 1", "Start_DateTime"=>"2020-05-10T10:10:10+05:30", "End_DateTime"=>"2020-05-10T11:10:10+05:30"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-EXTERNAL | string |