Skip to content

Salesforce ​

Your leads, contacts, accounts, opportunities and tasks — to create a lead from an email, find a customer or attach a document to their record.

A Salesforce connection lets the Salesforce node create, find and update leads, contacts, accounts, opportunities, tasks and notes, attach an email file to a record and query the org in SOQL, and lets the Salesforce record trigger start a workflow on a new lead.

Salesforce has no API key: the connection comes from an OAuth consent. You click Sign in with Salesforce, log in at Salesforce, approve the access and come back connected. Loop & Roll never sees your password; the tokens it obtains are encrypted at rest, renewed automatically and never appear in a workflow.

At a glance ​

  • Identifier: salesforce
  • Family: Service
  • Set up by: A member (personal) or an administrator (shared with the organisation)
  • Authentication: Sign in with the service (OAuth)
  • Credential type: service:salesforce
  • Official API documentation: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_rest.htm
  • Environments: Sandbox (sandbox) — {instance_url} ; Production (production) — {instance_url}
  • Rate limit applied by Loop & Roll: 60 requests per minute and per connection; up to 3 attempts on a 429 or a 5xx
  • Connection test: Yes

Step by step ​

The same steps are shown in the connection form of the app.

  1. Choose the environment: “Production” for your real org, “Sandbox” for a test copy.
  2. Click “Sign in with Salesforce” and log in with the account whose permissions the workflows will use.
  3. Approve the requested access: you come back here, connected. Your password is never seen nor stored.

Connection fields ​

FieldKindRequiredNotes
Environment (environment)ChoiceYessandbox (Sandbox), production (Production) Default: production

Before you start ​

  • A Salesforce edition with API access: Enterprise, Unlimited, Developer, or Professional with the API add-on.
  • The connection acts with the permissions of the user who signs in: what they cannot see or change in Salesforce, the workflow cannot either.
  • An OAuth application: either the one provided by your instance (nothing to do), or a connected app (“External Client App”) created by your Salesforce administrator — see OAuth application.

Permissions ​

The connection asks for two permissions, and only two:

PermissionWhy
apiRead and write records through the REST API.
refresh_tokenKeep access without asking you to sign in again.

The full permission (org administration) is never requested.

Add the connection ​

  1. Open Connections, click Add a connection, then the Salesforce card.
  2. Give it a Name, pick the Scope (Personal or Organisation — only an administrator creates an organisation connection) and the Environment: Production for your real org, Sandbox for a test copy. The environment cannot be changed afterwards.
  3. Click Sign in with Salesforce, log in and approve the access.
  4. Back on Connections, the connection shows the joined account. Configure → Test the connection calls GET /services/oauth2/userinfo and shows the account’s username.

Reconnect ​

If Salesforce refuses to renew access (consent withdrawn, user deactivated, application changed), the connection turns to Reconnect, workflows using it fail with integration.connection_unusable, and you get a notification. Click Reconnect: the connection keeps its name, scope and environment.

Deleting a connection revokes its tokens at Salesforce.

OAuth application ​

An administrator sees the OAuth application panel in the connection window:

  • Redirect URL to declare in the Salesforce app: <PUBLIC_BASE_URL>/api/v1/integrations/oauth/callback;
  • permissions to select: api and refresh_token (“Perform requests at any time”);
  • PKCE: keep “Require Proof Key for Code Exchange” enabled — Loop & Roll always sends it.

Paste the Client ID (Consumer Key) and Client secret (Consumer Secret), then Save the application. The organisation’s application replaces the instance’s one for new connections; existing ones keep the application that issued them. Replacing the organisation’s application with another one requires reconnecting the connections it issued.

Common errors ​

Message or codeCauseWhat to do
integration_oauth.app_not_configuredNeither an organisation application nor an instance application.An administrator declares the application under OAuth application.
integration_oauth.access_deniedYou declined access at Salesforce.Start again and approve.
integration_oauth.invalid_stateThe sign-in link expired (ten minutes), was already used, or came back in another session.Start again from the same browser.
integration_oauth.invalid_contextSalesforce returned an instance address outside Salesforce domains.Refused for security reasons; contact support.
integration_oauth.missing_refresh_tokenThe application does not grant refresh_token.Add “Perform requests at any time” to the app, then reconnect.
integration.connection_unusableConnection to reconnect, deleted or out of your scope.Reconnect, or pick another connection.
integration.rejectedSalesforce refused the request (unknown field, invalid value, validation rule).The step detail quotes Salesforce’s answer; fix the fields.
integration.rate_limitedThe org’s API quota is reached. Loop & Roll sends at most 60 requests per minute per connection.Temporary: the engine retries the step later.

Nodes that use this connection ​

Loop & Roll — the workflow builder for email.