Skip to content
Salesforce

How to use Salesforce

Sales & CRMCost: 1 credit per runTop 100 · #8Full guide

What it is for

The Salesforce component connects your CRM with the rest of your tools: create leads, contacts, opportunities and cases, query records with SOQL and react to object changes. For example, push web form entries into leads or alert your team when a new case arrives.

Most triggers (New Lead, New Contact, New Record, New or Updated Record, New Case in Queue...) check Salesforce periodically every few minutes. New Outbound Message is instant: copy the flow's webhook URL and paste it as the endpoint of the Outbound Message you set up in Salesforce.

Set up the connection

Authentication type: OAuth 2.0 (sign in with your account)

  1. 1Add a Salesforce step to your flow and click "Connect".
  2. 2Sign in with your Salesforce user (production or sandbox, as appropriate).
  3. 3Approve the permissions requested for API access.
  4. 4Make sure your profile has API access enabled and rights on the objects you plan to use.
  5. 5Rename the connection, for example "Salesforce Sales", and save it.

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Create Lead: fill "Last Name" and "Company" (required) by mapping data from the form or earlier step; use "Other Fields" for custom fields.
  • Find Record: choose the "Object", the "Field" to search and the "Search Value" (for example, the email) before creating, to avoid duplicates.
  • Update Record: select "Object" and "Record" (you can map the Id returned by Find Record) and put only the changed values in "Fields".
  • Run Query: write a SOQL query in "Query" when you need complex filters or relationships.
  • Create Task and Log Email record sales follow-ups linked to a contact, lead or "Related Record ID".

Tips

  • •Use field API names (custom ones end in __c) in "Other Fields" and "Fields".
  • •Test in a sandbox first if you will create or delete records in bulk.
  • •Pair New or Updated Record with "Conditions" to catch only the changes you care about.

Triggers (9)

Events that can start a flow. Expand each one to see its fields.

New Case AttachmentPeriodic check0 fields

No fields to configure.

New ContactPeriodic check0 fields

No fields to configure.

New Field History EventPeriodic check1 fields
FieldTypeRequired
ObjectList (from your account)Yes
New LeadPeriodic check0 fields

No fields to configure.

New or Updated RecordPeriodic check2 fields
FieldTypeRequired
ObjectList (from your account)Yes
ConditionsLong textNo
New Outbound MessageWebhook (paste the URL in the app)0 fields

No fields to configure.

New RecordPeriodic check2 fields
FieldTypeRequired
ObjectList (from your account)Yes
ConditionsLong textNo
New or Updated FilePeriodic check0 fields

No fields to configure.

New Case in QueuePeriodic check1 fields
FieldTypeRequired
Case QueueList (from your account)Yes

Actions (27)

Operations available as flow steps. Expand each one to see its fields.

Add Contact to Campaign3 fields
FieldTypeRequired
CampaignList (from your account)Yes
ContactList (from your account)Yes
Member StatusList (from your account)Yes
Add File to Record4 fields
FieldTypeRequired
ObjectList (from your account)Yes
RecordList (from your account)Yes
FileFileYes
File NameTextYes
Add Lead to Campaign3 fields
FieldTypeRequired
CampaignList (from your account)Yes
LeadList (from your account)Yes
Member StatusList (from your account)Yes
Create Legacy Attachment4 fields
FieldTypeRequired
ObjectList (from your account)Yes
RecordList (from your account)Yes
FileFileYes
File NameTextYes
Create Case8 fields
FieldTypeRequired
SubjectTextYes
DescriptionLong textNo
StatusList (from your account)No
PriorityList (from your account)No
OriginList (from your account)No
AccountList (from your account)No
ContactList (from your account)No
Other FieldsJSONNo
Create Contact7 fields
FieldTypeRequired
Last NameTextYes
First NameTextNo
AccountList (from your account)No
EmailTextNo
PhoneTextNo
TitleTextNo
Other FieldsJSONNo
Create Lead7 fields
FieldTypeRequired
Last NameTextYes
CompanyTextYes
First NameTextNo
EmailTextNo
PhoneTextNo
Lead SourceList (from your account)No
Other FieldsJSONNo
Create Note4 fields
FieldTypeRequired
ObjectList (from your account)Yes
RecordList (from your account)Yes
TitleTextYes
BodyLong textYes
Create Opportunity6 fields
FieldTypeRequired
NameTextYes
Close DateTextYes
StageList (from your account)Yes
AccountList (from your account)No
AmountNumberNo
Other FieldsJSONNo
Create Record2 fields
FieldTypeRequired
ObjectList (from your account)Yes
FieldsJSONYes
Create Task7 fields
FieldTypeRequired
SubjectTextYes
OwnerList (from your account)Yes
StatusList (from your account)Yes
PriorityList (from your account)Yes
DescriptionLong textNo
Contact or Lead IDTextNo
Related Record IDTextNo
Delete Opportunity1 fields
FieldTypeRequired
OpportunityList (from your account)Yes
Delete Record2 fields
FieldTypeRequired
ObjectList (from your account)Yes
RecordList (from your account)Yes
Export Report1 fields
FieldTypeRequired
ReportList (from your account)Yes
Find Child Records3 fields
FieldTypeRequired
Parent ObjectList (from your account)Yes
Parent RecordList (from your account)Yes
Child RelationshipList (from your account)Yes
Find Record3 fields
FieldTypeRequired
ObjectList (from your account)Yes
FieldList (from your account)Yes
Search ValueTextYes
Find Records by Query2 fields
FieldTypeRequired
ObjectList (from your account)Yes
ConditionsTextYes
Get Record Attachments2 fields
FieldTypeRequired
ObjectList (from your account)Yes
RecordList (from your account)Yes
Run Query1 fields
FieldTypeRequired
QueryTextYes
Run Report2 fields
FieldTypeRequired
ReportList (from your account)Yes
FiltersJSONNo
Log Email4 fields
FieldTypeRequired
RecipientList (from your account)Yes
SubjectTextYes
BodyLong textYes
Related Record IDTextNo
Update Contact8 fields
FieldTypeRequired
ContactList (from your account)Yes
First NameTextNo
Last NameTextNo
AccountList (from your account)No
EmailTextNo
PhoneTextNo
TitleTextNo
Other FieldsJSONNo
Update Lead8 fields
FieldTypeRequired
LeadList (from your account)Yes
First NameTextNo
Last NameTextNo
CompanyTextNo
EmailTextNo
PhoneTextNo
Lead SourceList (from your account)No
Other FieldsJSONNo
Update Record3 fields
FieldTypeRequired
ObjectList (from your account)Yes
RecordList (from your account)Yes
FieldsJSONYes
Batch Upsert3 fields
FieldTypeRequired
ObjectList (from your account)Yes
External ID FieldTextYes
RecordsJSONYes
Bulk Upsert3 fields
FieldTypeRequired
ObjectList (from your account)Yes
External ID FieldTextYes
RecordsLong textYes
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

INVALID_SESSION_ID or expired session

Reconnect the account and check your org's session policies.

INSUFFICIENT_ACCESS or field not visible

Ask your admin for object permissions and field-level security.

REQUEST_LIMIT_EXCEEDED

You hit the daily API limit; lower the frequency or batch operations.

REQUIRED_FIELD_MISSING

Review the object's required fields, including your org's validation rules.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps