Documentation Center

Get a CRM item

Use the externalItem GraphQL query get a single CRM item (entity type is contact).

Fields and inputs

The first sample code block illustrates a request to retrieve a contact based on their identity.

{
  externalItem(
    identity: {
      namespace: "salesforce",
      type: "Contact",
      id: "0030O000023S1zFQAS"
    }
  ) {
    ... on Contact {
      name
      email
      phone
    }
  }
}

Example request and response

The second code block illustrates the corresponding response with with the requested contact details.

{
  "data": {
    "externalItem": {
      "name": "John Smith",
      "email": "jsmith@company.com",
      "phone": "+441234567890"
    }
  }
}