Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to lookup contact ID / associate based on email. Create a new one if one isn't there.
Regular Contributor
Nov 8, 2020 10:46 AM - edited Nov 8, 2020 3:55 PM
Hello, I am very new to coding and API in general.
Using Postman, I was successfully able to create a task with the API documentation and associate the task to a contact.
However, I was only able to associate this task to the contact because I knew the ContactID.
What if I don't know the ContactID? What code needs to be written to find the contact. What if it can't find the contact, can it create one if I provide other details?
{
"engagement": {
"active": true,
"ownerId": 1,
"type": "TASK",
"timestamp": 1604811446969
},
"associations": {
"contactIds": [801],
"companyIds": [ ],
"dealIds": [ ],
"ownerIds": [ ],
"ticketIds":[ ]
},
"metadata": {
"body": "This is the body of the task.",
"subject": "Your Customer Requested a Meeting from a recent Marketing Activity",
"status": "NOT_STARTED",
"forObjectType": "CONTACT"
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content