capabilities.work

Upsert Contact

A 3-step recipe with ServiceNow. We can help you get access.

Recipe · 3 steps

Upsert Contact

Create or update a CSM contact keyed on email.

  1. Search for an existing contact whose email matches the supplied value, returning at most one record.
  2. Patch the matched contact through the Table API customer_contact table. The Contact API exposes no update endpoint, so the generic Table API is used to apply changes by sys_id.
  3. Create a new CSM contact when no existing contact matched the email.
What you'll need to have ready
  • email: The email address used to match an existing contact.
  • firstName: The contact's first name.
  • lastName: The contact's last name.
  • phone: The contact's phone number.
  • title: The contact's job title.
For your developer

Arazzo workflow servicenow:upsert-contact, 3 operations: getContacts → patchRecord → createContact. Specs on APIs.io.