> For the complete documentation index, see [llms.txt](https://docs.slapfive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.slapfive.com/integrations/salesforce/synchronize-data-between-salesforce-and-slapfive/connect-to-salesforce.md).

# Connect to Salesforce

This section covers how to establish your Salesforce Connection within SlapFive's Embedded Integration.

### How to connect

In SlapFive, go into **Settings**, and click on the **Integrations** sub-tab.

* [ ] Click the **Salesforce Connection** box to expand it, and click the **Connect** button.

<figure><img src="https://2901117923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlkxMKaLwhXP9Cu98jtv6%2Fuploads%2FrMja2Nf7O7bon9sVCgHU%2FScreenshot%202023-01-15%20144702.png?alt=media&amp;token=959c01e2-f6fd-45c4-b294-7c2a7452468f" alt=""><figcaption><p>Salesforce Connection screen in SlapFive Settings</p></figcaption></figure>

* [ ] You will see your **Salesforce Login** window. Enter the login credentials for your integration user and click **Log In**.

<figure><img src="https://2901117923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlkxMKaLwhXP9Cu98jtv6%2Fuploads%2FK2Q5ZxnSVsFt4q4VkdLL%2FScreenshot%202023-01-15%20145119.png?alt=media&amp;token=62a610bb-ea6f-4f6b-a005-83e745af26e8" alt=""><figcaption><p>Salesforce Login window</p></figcaption></figure>

You will then be returned to the Salesforce Connection box in SlapFive, and the button should now say **Disconnect**, and you should see a green <mark style="color:green;">**Connection success**</mark> message.

<figure><img src="https://2901117923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlkxMKaLwhXP9Cu98jtv6%2Fuploads%2Fc5RTxSTJEbefURSIRBkS%2FScreenshot%202023-01-15%20152451.png?alt=media&amp;token=a7316b00-3636-42f0-a83b-5ce1d22ed795" alt=""><figcaption><p>Connection success message</p></figcaption></figure>

### How it works using the Workato Connected App

When you connect Salesforce from the SlapFive embedded integration server, which embeds **Workato**, Workato initiates an OAuth authorization flow that relies on a Salesforce **Connected App** for Workato.

In most Salesforce orgs, this process is automatic. In some orgs—typically those with stricter security controls—Salesforce does **not** complete all required steps deterministically.

Here's what it does:

* The first connection attempt **creates or surfaces** the *Workato Connected App* in Salesforce Setup
* Depending on org security settings, Salesforce may:
  * Automatically install and allow the app, **or**
  * Leave the app present but **not installed or blocked**
* If the app is not fully installed and unblocked, the OAuth flow fails and the connection does not complete

#### What to do if the Salesforce connection fails

If you see any error while connecting Salesforce from Workato:

1. In Salesforce, go to **Setup → Connected Apps → Manage Connected Apps.**
2. Locate and click **Workato.**
3. Verify the following:
   * If **Install** is available, click **Install**
   * If **Unblock** is available, click **Unblock**
4. Return to the **SlapFive Client Settings > Integrations** tab and retry the Salesforce connection

Once the app is both **installed** and **unblocked**, the connection should succeed.
