Skip to main content

Documentation Index

Fetch the complete documentation index at: https://explore.airia.com/llms.txt

Use this file to discover all available pages before exploring further.

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

GroupActions
LeadCreate, Update, Get, Get All, Delete
AccountCreate, Update, Get, Get All, Delete
ContactCreate, Update, Get, Get All, Delete
OpportunityCreate, Update, Get, Get All, Delete

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.
InputRequiredDescription
Last NameYesThe lead’s last name.
CompanyYesThe company name.
First NameNoThe lead’s first name.
EmailNoThe lead’s email address.
PhoneNoThe lead’s phone number.
TitleNoThe lead’s job title.
Lead SourceNoWhere the lead came from, for example Web, Phone Inquiry, or Partner Referral.
StatusNoThe lead status, for example Open, Working, or Closed.
Additional Fields JSONNoA JSON object of extra fields to set on the lead.

Salesforce Lead Update

Updates an existing lead.
InputRequiredDescription
Lead IDYesThe unique identifier of the lead to update.
Last NameNoThe lead’s last name.
CompanyNoThe company name.
First NameNoThe lead’s first name.
EmailNoThe lead’s email address.
PhoneNoThe lead’s phone number.
TitleNoThe lead’s job title.
Lead SourceNoWhere the lead came from.
StatusNoThe lead status.
Additional Fields JSONNoA JSON object of extra fields to set on the lead.

Salesforce Lead Get

Retrieves a lead by ID.
InputRequiredDescription
Lead IDYesThe unique identifier of the lead to retrieve.
FieldsNoA comma separated list of fields to return. Leave empty for the default set.

Salesforce Lead Get All

Lists leads.
InputRequiredDescription
Where ClauseNoA SOQL filter, the part after WHERE entered without the keyword.
FieldsNoA comma separated list of fields to return. Leave empty for the default set.
LimitNoMaximum number of records to return. Defaults to 200.

Salesforce Lead Delete

Deletes a lead.
InputRequiredDescription
Lead IDYesThe unique identifier of the lead to delete.

Account

Salesforce Account Create

Creates a new account.
InputRequiredDescription
NameYesThe account name.
IndustryNoThe account’s industry.
PhoneNoThe account’s phone number.
WebsiteNoThe account’s website.
DescriptionNoA description of the account.
Additional Fields JSONNoA JSON object of extra fields to set on the account.

Salesforce Account Update

Updates an existing account.
InputRequiredDescription
Account IDYesThe unique identifier of the account to update.
NameNoThe account name.
IndustryNoThe account’s industry.
PhoneNoThe account’s phone number.
WebsiteNoThe account’s website.
DescriptionNoA description of the account.
Additional Fields JSONNoA JSON object of extra fields to set on the account.

Salesforce Account Get

Retrieves an account by ID.
InputRequiredDescription
Account IDYesThe unique identifier of the account to retrieve.
FieldsNoA comma separated list of fields to return. Leave empty for the default set.

Salesforce Account Get All

Lists accounts.
InputRequiredDescription
Where ClauseNoA SOQL filter, the part after WHERE entered without the keyword.
FieldsNoA comma separated list of fields to return. Leave empty for the default set.
LimitNoMaximum number of records to return. Defaults to 200.

Salesforce Account Delete

Deletes an account.
InputRequiredDescription
Account IDYesThe unique identifier of the account to delete.

Contact

Salesforce Contact Create

Creates a new contact.
InputRequiredDescription
Last NameYesThe contact’s last name.
First NameNoThe contact’s first name.
EmailNoThe contact’s email address.
PhoneNoThe contact’s phone number.
Account IDNoThe associated account.
TitleNoThe contact’s job title.
Additional Fields JSONNoA JSON object of extra fields to set on the contact.

Salesforce Contact Update

Updates an existing contact.
InputRequiredDescription
Contact IDYesThe unique identifier of the contact to update.
Last NameNoThe contact’s last name.
First NameNoThe contact’s first name.
EmailNoThe contact’s email address.
PhoneNoThe contact’s phone number.
Account IDNoThe associated account.
TitleNoThe contact’s job title.
Additional Fields JSONNoA JSON object of extra fields to set on the contact.

Salesforce Contact Get

Retrieves a contact by ID.
InputRequiredDescription
Contact IDYesThe unique identifier of the contact to retrieve.
FieldsNoA comma separated list of fields to return. Leave empty for the default set.

Salesforce Contact Get All

Lists contacts.
InputRequiredDescription
Where ClauseNoA SOQL filter, the part after WHERE entered without the keyword.
FieldsNoA comma separated list of fields to return. Leave empty for the default set.
LimitNoMaximum number of records to return. Defaults to 200.

Salesforce Contact Delete

Deletes a contact.
InputRequiredDescription
Contact IDYesThe unique identifier of the contact to delete.

Opportunity

Salesforce Opportunity Create

Creates a new opportunity.
InputRequiredDescription
NameYesThe opportunity name.
Stage NameYesThe sales stage, for example Prospecting, Qualification, or Closed Won.
Close DateYesThe expected close date in YYYY-MM-DD format.
Account IDNoThe associated account.
AmountNoThe monetary amount, entered as a fixed number.
ProbabilityNoThe win probability from 0 to 100, entered as a fixed number.
DescriptionNoA description of the opportunity.
Additional Fields JSONNoA JSON object of extra fields to set on the opportunity.

Salesforce Opportunity Update

Updates an existing opportunity.
InputRequiredDescription
Opportunity IDYesThe unique identifier of the opportunity to update.
NameNoThe opportunity name.
Stage NameNoThe sales stage.
Close DateNoThe expected close date in YYYY-MM-DD format.
Account IDNoThe associated account.
AmountNoThe monetary amount, entered as a fixed number.
ProbabilityNoThe win probability, entered as a fixed number.
DescriptionNoA description of the opportunity.
Additional Fields JSONNoA JSON object of extra fields to set on the opportunity.

Salesforce Opportunity Get

Retrieves an opportunity by ID.
InputRequiredDescription
Opportunity IDYesThe unique identifier of the opportunity to retrieve.
FieldsNoA comma separated list of fields to return. Leave empty for the default set.

Salesforce Opportunity Get All

Lists opportunities.
InputRequiredDescription
Where ClauseNoA SOQL filter, the part after WHERE entered without the keyword.
FieldsNoA comma separated list of fields to return. Leave empty for the default set.
LimitNoMaximum number of records to return. Defaults to 200.

Salesforce Opportunity Delete

Deletes an opportunity.
InputRequiredDescription
Opportunity IDYesThe unique identifier of the opportunity to delete.

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.