Skip to main content

Create contact

The Salesforce Create contact action creates new contact records in your connected Salesforce org. This write action creates a new contact each time it runs and does not update or delete existing contacts.

Limitations

  • As with other Salesforce actions, the exact parameter set and behavior can change over time. Confirm how this action behaves in your own environment before you depend on it for large-scale or fully automated contact creation.

Prerequisites

  • Your Salesforce org must be connected as a data source in Glean, and an admin must enable the Salesforce action pack and complete Salesforce Actions Setup including OAuth configuration.

  • Users must authenticate for Salesforce actions on first use and have permission to create Contact records.

Supported parameters

ParametersTypeDescription
Account IDStringUnique identifier for the account.
BirthdateStringBirthdate of the individual.
DepartmentStringDepartment the individual belongs to.
DescriptionStringAdditional details or notes about the record.
EmailStringPrimary email address.
First nameStringFirst name of the individual.
Last nameStringRequired. Last name of the individual.
Lead sourceStringSource from which the lead was acquired.
Mailing cityStringCity for the mailing address.
Mailing countryStringCountry for the mailing address.
Mailing postal codeStringPostal or ZIP code for the mailing address.
Mailing stateStringState or province for the mailing address.
Mailing streetStringStreet address for mailing.
Mobile phoneStringMobile phone number.
PhoneStringPrimary phone number.
TitleStringJob title or role of the individual.

Usage example

You need to add a new contact to Salesforce for a customer representative you met at a conference, checking first to avoid creating a duplicate if they already exist in your system.

Instruction to an agent:

"Check if a contact exists in Salesforce for abc@example.com. If not found, create a new contact for ABC JIM, Director of Product at XYZ Solutions, phone 123-555-0789, located in Palo Alto, CA, and associate her with the YXZ account."

Resulting behavior:

  • Calls a Salesforce search action to find contacts with email "abc@example.com".

  • No existing contact found, so proceeds with creation.

  • Calls Search Salesforce with SOQL to find the Account ID for "XYZ Solutions".

  • Retrieves the Account ID (for example, "001xx000001234567").

  • Calls Create contact with:

    • First name set to "ABC".

    • Last name set to "JIM" (required).

    • Email set to "abc@example.com".

    • Title set to "Director of Product".

    • Phone set to "123-555-0789".

    • Account ID set to "001xx000001234567".

    • Mailing city set to "Palo Alto".

    • Mailing state set to "CA".

    • Mailing country set to "United States".

  • Creates a new Contact record in Salesforce linked to the XYZ Solutions account.

  • Returns the Contact ID (for example, "003xx000001234567").

  • Confirms the contact was created and associated with the correct account.

Workflow tip: Always search for existing contacts by email before creating to avoid duplicates. Combine this action with Salesforce Add contact to campaign, Salesforce Associate contact to account, or Salesforce Send email to build complete contact management workflows. For bulk operations, process contacts from structured sources like Google Sheets by iterating through rows.

Troubleshooting

FAQs