Skip to main content
Salesforce actions let an agent work with CRM records directly in a flow. An agent can create, read, update, and delete leads, accounts, contacts, and opportunities, then pass the results to later steps.

Supported actions

Prerequisites

Connect Salesforce as a Salesforce OAuth credential in Credential Management, then select it on every Salesforce action. For the connection steps, see the Salesforce OAuth setup guide. These actions also support end user authentication, so a step can run against the credential of the person using the agent.

How to use these actions

  • Map text inputs from earlier steps. Inputs such as names, IDs, and field values accept a value mapped from a previous step. The Limit number takes a fixed value.
  • Filter the Get All actions with SOQL. The Where Clause is the part of a SOQL query that comes after WHERE, entered without the keyword.
  • Choose which fields to return. The Fields input is a comma separated list of fields. Leave it empty to return the default set.
  • Set fields that are not shown. Additional Fields JSON accepts a JSON object for any fields not shown as their own input.

Actions

Lead

Salesforce Lead Create

Creates a new lead.

Salesforce Lead Update

Updates an existing lead.

Salesforce Lead Get

Retrieves a lead by ID.

Salesforce Lead Get All

Lists leads.

Salesforce Lead Delete

Deletes a lead.

Account

Salesforce Account Create

Creates a new account.

Salesforce Account Update

Updates an existing account.

Salesforce Account Get

Retrieves an account by ID.

Salesforce Account Get All

Lists accounts.

Salesforce Account Delete

Deletes an account.

Contact

Salesforce Contact Create

Creates a new contact.

Salesforce Contact Update

Updates an existing contact.

Salesforce Contact Get

Retrieves a contact by ID.

Salesforce Contact Get All

Lists contacts.

Salesforce Contact Delete

Deletes a contact.

Opportunity

Salesforce Opportunity Create

Creates a new opportunity.

Salesforce Opportunity Update

Updates an existing opportunity.

Salesforce Opportunity Get

Retrieves an opportunity by ID.

Salesforce Opportunity Get All

Lists opportunities.

Salesforce Opportunity Delete

Deletes an opportunity.

Example

An agent that turns an inbound inquiry into a tracked deal:
1

Find the account

A Salesforce Account Get All action filters with a Where Clause such as Name = 'Acme Corp' so a model step can confirm whether the company already exists.
2

Create the contact

A Salesforce Contact Create action sets Last Name and Email from the inquiry and maps Account ID to the account from the previous step.
3

Open the opportunity

A Salesforce Opportunity Create action sets Name, Stage Name to Prospecting, and Close Date, mapping Account ID to the same account.
4

Confirm

A model step summarizes the created records, including their returned IDs, for the activity log.

Troubleshooting

Salesforce rejects records that lack a required field. A lead needs Last Name and Company, and an opportunity needs Name, Stage Name, and Close Date.
The Where Clause must be valid SOQL with the WHERE keyword removed. Quote string values with single quotes, for example Status = 'Open'.
The connected user does not have permission for the object or record. Confirm the user’s profile grants access to the leads, accounts, contacts, or opportunities you are calling.
Reconnect the Salesforce OAuth credential. If a step uses end user authentication, the person running the agent may need to authorize Salesforce again.
For issues common to every vendor, see the Actions overview.