English
Salesforce record
Starts the workflow when a lead, contact, account or opportunity is created or changed in Salesforce, checking at a regular interval. The record lands in data.salesforce, with no triggering email.
The Salesforce record trigger checks your Salesforce org at a regular interval and starts a run for each lead, contact, account or opportunity created (or changed) since the previous check. It uses a Salesforce connection; nothing needs to be set up in Salesforce.
The run has no triggering email: nodes acting on the triggering email cannot follow this trigger. Send remains usable if you pick the sending mailbox.
At a glance
- Type:
trigger.salesforce· version 1 - Category: Triggers
- Kind: Trigger — starts a run
- Effect: No external effect (
none) — nothing is written outside Loop & Roll; safe to replay - Needs a carrier email: No
- Connection: Salesforce
- Outputs:
main
Connection
This node needs a Salesforce connection.
Parameters
connection
Salesforce connection — The Salesforce connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
object
Object
- Type: One choice (
options) - Required: Yes
- Default:
Lead - Options:
Lead— LeadContact— ContactAccount— AccountOpportunity— Opportunity
event
Trigger on
- Type: One choice (
options) - Required: Yes
- Default:
created - Options:
created— A new recordupdated— A record created or changed: By the last modified date: a creation counts too.
everyMinutes
Check every (minutes) — Each check uses one request of your Salesforce org’s daily API quota.
- Type: Number (
number) - Required: No
- Default:
15 - Whole number, from 5 to 1440
Outputs
main— Taken once per new or changed record found during a check: each record starts its own run.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.salesforce.id }}—string. The Salesforce ID of the record.{{ data.salesforce.object }}—string. The watched object:Lead,Contact,AccountorOpportunity.{{ data.salesforce.record }}—object. The standard fields of the record, keyed by API name:{{ data.salesforce.record.Email }},{{ data.salesforce.record.Company }}.{{ data.salesforce.changedAt }}—string. The instant that made the record count (creation, or last modification), ISO 8601.{{ data.salesforce.event }}—string.createdorupdated, depending on the trigger setting.
Example
To acknowledge every new lead:
object Lead
event created
everyMinutes 15A Send node writes to {{ data.salesforce.record.Email }} with the subject Hello {{ data.salesforce.record.FirstName }}.
Tips
- Starting point. On publication, the trigger starts “from now”: existing records are not replayed.
- Pace. Between 5 and 1,440 minutes, 15 by default. Each check uses one request of the org’s daily API quota.
- Volume. A check brings back at most 100 records; the rest waits for the next check and is not lost.
- No duplicates. A run is identified by the record and the instant that made it count.
- Loops. “Created or changed” fires again if the workflow changes the record it receives: stop the branch with a Condition on a field the workflow fills.
- Connection to reconnect. A connection refused by Salesforce stops the checks and sends you a notification, one per outage.