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
| Parameters | Type | Description |
|---|---|---|
| Account ID | String | Unique identifier for the account. |
| Birthdate | String | Birthdate of the individual. |
| Department | String | Department the individual belongs to. |
| Description | String | Additional details or notes about the record. |
| String | Primary email address. | |
| First name | String | First name of the individual. |
| Last name | String | Required. Last name of the individual. |
| Lead source | String | Source from which the lead was acquired. |
| Mailing city | String | City for the mailing address. |
| Mailing country | String | Country for the mailing address. |
| Mailing postal code | String | Postal or ZIP code for the mailing address. |
| Mailing state | String | State or province for the mailing address. |
| Mailing street | String | Street address for mailing. |
| Mobile phone | String | Mobile phone number. |
| Phone | String | Primary phone number. |
| Title | String | Job 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 nameset to "ABC". -
Last nameset to "JIM" (required). -
Emailset to "abc@example.com". -
Titleset to "Director of Product". -
Phoneset to "123-555-0789". -
Account IDset to "001xx000001234567". -
Mailing cityset to "Palo Alto". -
Mailing stateset to "CA". -
Mailing countryset 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.