# Salesforce

> Install the app's Salesforce package, connect it with your own credentials, and send SMS, iMessage, WhatsApp or RCS from Salesforce Flows, with inbound messages, missed calls and delivery statuses coming back.

Source: https://docs.mycrmsim.com/guides/salesforce
Updated: 2026-11-20

The Salesforce package adds send actions to **Flow Builder** and sends
**inbound messages**, **missed calls** and **delivery statuses** back into
Salesforce, so Flows can react to them.

The dashboard's Salesforce card walks you through every step, with the exact
names to look for in Salesforce. This page gives the overview.

---

## Before you start

- **A Custom Location workspace with a line.** The workspace list in Salesforce
  only shows Custom Location workspaces. Create one in **Workspaces /
  Webhooks** with **Add Workspace**, or with **New line** under **Settings →
  Custom Location API**, then assign a line to it on **Subaccount SIM**.
- **A Salesforce org where you can install packages.** The dashboard's steps
  assume a free Developer Edition. Salesforce deletes a Developer Edition org
  that nobody signs in to for 45 days.
- **System administrator rights** in Salesforce.

---

## Step 1 — Install the package

![The Salesforce card on the Integrations page](https://docs.mycrmsim.com/assets/salesforce-DgzRpqYh.png)

1. Open **Settings → Integrations** and find **Salesforce**.
2. Click **Install Package**. Salesforce's installer opens in a new tab.
3. Sign in to Salesforce and choose **Install for All Users**.
4. When it's done, go back to the dashboard and click **Mark as Installed**.
   The card shows **Package Installed** and opens **Setup guide &
   credentials**.

> **Important:** to upgrade, uninstall the old package first, in Salesforce
> under **Setup › Installed Packages**. Installing over an old version fails.

## Step 2 — Copy your credentials into Salesforce

1. In **Setup guide & credentials**, click **Get My Credentials**. Copy the
   **Consumer Key** and **Consumer Secret**.
2. In Salesforce, open **Setup › Auth. Providers**, edit the app's entry, and
   paste both values. Clear each field fully before pasting. Save.
3. Open **Setup › Named Credentials**. The package has three, named after the
   app (the main one, one ending in *Me* and one ending in *SMS*). For each:
   **Edit**, then **Save** without changes, sign in with your dashboard login
   in the popup, and click **Allow**.

**Regenerate Credentials** makes a new pair. Paste them into the Auth Provider
again straight away, or Salesforce can no longer reach your account.

## Step 3 — Give users access

1. In Salesforce, open **Setup › Permission Sets** and the app's set (its name
   ends in *Integration*).
2. Click **Manage Assignments › Add Assignment**, tick your user, and assign.
3. Repeat for everyone who builds or runs the app's Flows.

Without this, the app's fields don't show in Flow Builder.

## Step 4 — Create a Site for incoming events

Salesforce needs a public Site for inbound messages, missed calls and delivery
statuses to arrive.

1. **Setup › Sites**: register (the first time only), then **New**. Give it a
   label and name, and save.
2. Back in the Sites list, click **Activate** next to it. Check it shows as
   active.
3. Open the site, then **Public Access Settings › Apex Class Access**, and add
   the package's three receiver classes: the ones ending in
   *InboundReceiver*, *MissedCallReceiver* and *MessageStatusReceiver*.
4. On the same page, under **Object Settings**, open the app's *Message Status*
   object and tick **Read** and **Create**.

> **Warning:** a new Site is inactive. Nothing reaches Salesforce until it's
> active.

## Step 5 — Send from a Flow

1. **Setup › Flows › New Flow**, and pick the Flow type you need, for example
   a record-triggered Flow.
2. Add an **Action** and search for the app's send action, such as *Send SMS
   via …*. There are actions for SMS, iMessage, WhatsApp and RCS.
3. Fill in the phone number and message, and pick the workspace in **Workspace
   (Location)**. Picking it also connects that workspace's inbound messages,
   missed calls and statuses to Salesforce.
4. Optional: **Send From** lists the users with a line on that channel. Leave
   it on **Automatic** for normal routing.
5. Save and activate the Flow, then test it.

**Delivery statuses.** To record sent, delivered or failed on your own
records, build a platform event-triggered Flow on the app's *Message Status*
event and match its **Message Id** against the id the send action returned.

---

## Troubleshooting

| What you see | What to do |
|---|---|
| The install fails with a component conflict | An older version is installed. Uninstall it first. |
| The app's fields or actions aren't in Flow Builder | Assign the app's permission set to your user (Step 3). |
| Sends fail with an authorisation error | Paste the current Consumer Key and Secret into the Auth Provider, then save each Named Credential again and sign in. |
| Inbound messages never reach Salesforce | Check the Site is **Active** and has all three receiver classes, and that a Flow action has the workspace picked. |
| Your workspace isn't in **Workspace (Location)** | Only Custom Location workspaces are listed. Create one and assign a line to it. |
| The message didn't arrive | Check **Message Logs** in your dashboard. See [Why a message failed](https://docs.mycrmsim.com/guides/error-codes). |
