Tailflow
Skip to article
Browse documentation

Salesforce · Action

Find or create record

Finds the first record whose field equals the value. When there is none, creates a record with that value and the other fields you list.

When to use it

Making sure a contact exists for a wallet before a later step updates it or adds it to a campaign.

At a glance

IntegrationSalesforce
Credits1
ConnectionSalesforce, by signing in

Settings

objectRequired
Object. Picked from your account's own list, or typed.
fieldRequired
Search field. The field to look in. Picked from your account's own list, or typed.
valueRequiredAccepts event fields
Search value. Matched exactly. Capitals are ignored for most text fields.
fieldsOptionalAccepts event fields
Fields. Used only when a record is created. The search field is filled with the search value for you. One row per field, each picked from your account's own list.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.salesforce_find_or_create_record_1.id }} — the action’s key, then which one it is if you use more than one of the same kind.

id
The record's id. It is what Update record takes.
object
The object the record belongs to.
fields
The record's values by field name, for example fields.Email.
created
True when the step made a new record, false when one already existed.

Good to know

  • A record that is found is not changed. The rows under Fields are used only when one is created.
  • When a record is created, fields holds the values that were sent.
  • Two runs at the same moment can both find nothing and both create a record. A duplicate rule in your org can stop the second one.