Skip to content
Sandadocs

Connect Salesforce

Connect the Salesforce org a push writes to, by signing in to Salesforce as the user Sanda writes as.

Standard · EnterpriseFor owners and admins

A push writes into a Salesforce org you connect once. You connect by signing in to Salesforce and allowing Sanda. There is no app to create in your own org and nothing to copy.

Before you start

  • Choose who Sanda writes as. Sanda can change exactly what the Salesforce user you sign in as can change, field by field. Use a Salesforce integration user (the API-only licence) rather than a person's own login, and give it edit access to only the fields your pushes write. Then a push never depends on one person staying in the job, and Sanda's access is as narrow as you choose.
  • Let that user allow Sanda. Your org hasn't installed Sanda's app, and Salesforce only lets a user allow an app the org hasn't installed if the user holds the Approve Uninstalled Connected Apps permission. A Salesforce admin can give it to the integration user.
  • To have Sanda create an object for a table, give that user more. A push that sends a whole table into a new object asks Salesforce to make the object and its fields, which needs Customize Application and Modify Metadata Through Metadata API Functions. To give itself access to what it made, the user also needs Manage Profiles and Permission Sets and Assign Permission Sets. Without them, a Salesforce admin can make the object, or give the access, and the push writes to it as to any other object.
  • Be an owner or admin in Sanda. Only owners and admins connect an org.

Connect an org

  1. Open Push. In the console, go to Data · Streams · Push.
  2. Start connecting. Under Choose a destination, press the Salesforce card, or the Salesforce sandbox card for a sandbox. Connect Salesforce (or Connect a Salesforce sandbox) opens under the cards, with who to sign in as and the permission they need, as in before you start. Press Continue to Salesforce. Once an org of that kind is connected, its card opens a new push instead: to connect another, press Connected orgs at the right of Choose a destination (it says Connected accounts once another destination's accounts are connected too), then Connect Salesforce or Connect a sandbox beside Salesforce in the window it opens.
  3. Sign in to Salesforce. Salesforce asks which user to sign in as even when this browser is already signed in to Salesforce, because the org open in another tab is often not the one you mean. Sign in as the user Sanda should write as.
  4. Allow Sanda. Salesforce shows what Sanda asks for: to manage data through the API, and to do so at any time. Press Allow.
  5. Check the org. You land back on Push with a note naming the org and the user. Its card counts it (1 org connected, or 1 sandbox connected on the sandbox card), and the Connected orgs window lists it beside Salesforce, marked connected.

Connect each org once, however many pushes write to it. Connecting the same org again keeps its pushes and replaces the old connection. The same connection serves a Salesforce stream that reads the org, so an org connected here is ready to pull from too, and one connected from the Pull tab is ready to push to.

If connecting doesn't finish

You land back on Push with a sentence saying what happened, and nothing is connected.

What happened What to do
You pressed Deny on Salesforce's screen Start connecting again and choose Allow.
Sanda couldn't match Salesforce's answer to the tab Connecting started in another tab or another workspace, or was left too long before it finished. Start connecting again from this tab.
Salesforce refused, or didn't finish signing Sanda in Try again. If it happens again, Sanda support can see why.
Only owners and admins can connect Ask an owner or admin of the workspace.

What Sanda keeps

  • One token per org, which lets Sanda sign in to Salesforce for a run. It is stored encrypted, used only to start a run, read your objects and fields, or make the object a table is sent into when you press its Create button, and never shown in the console.
  • The org's name and address, and the user you signed in as, shown in the Connected orgs window.
  • The org's API usage at its last reading, shown beside the org, so you can see how much of the day's allowance is left. See your API allowance.

Connect again

Salesforce can stop accepting Sanda's connection: an admin revoked it, a policy expired it, or the user Sanda signs in as was deactivated. The org is then marked connect again, and so are the Salesforce card under Choose a destination and the Connected orgs button. Its pushes are skipped, not failed, until you connect it again. The first run after catches up.

The run that found it fails and says so, and owners and admins get the failed-run email if it is turned on (see when runs fail). It doesn't count toward a push pausing itself, because the cause is the org's connection rather than the push. To carry on, press Connect again beside the org in the Connected orgs window and sign in as before.

Disconnect

  1. Find the org. Go to Data · Streams · Push and press Connected orgs, at the right of Choose a destination. The window lists the org beside Salesforce.
  2. Disconnect. Press Disconnect beside it, then Disconnect again to confirm.

Sanda revokes its token at Salesforce and forgets it. The pushes that write to the org stay, and so do any streams that read it, all marked waiting, and run again once you connect it. Nothing in Salesforce changes: the values pushes already wrote stay where they are.

Something unclear or out of date? Tell us, and we will fix the page.