Salesforce: How to connect it

Log WhatsApp conversations and calls in Salesforce: %s

Connect Salesforce to Wassenger

Connect your Salesforce organization once, and every WhatsApp conversation and call on the numbers you choose is logged on the Contact or Lead it belongs to. Your team keeps answering in Wassenger; Salesforce keeps the history.

You connect Salesforce through an External Client App: a small app that someone with admin rights creates once in your Salesforce organization. It takes about ten minutes, and this guide shows every screen.

Prefer to be guided? Open Set it up with your AI assistant, copy the prompt and paste it into ChatGPT, Claude, Gemini or Copilot. It walks you through these same steps, one at a time.

Before you start

  • In Wassenger: you need to be the owner or an administrator of the account. Each WhatsApp number you connect needs the Platform plan. A number without it is gray on the connect screen and says Needs a Platform plan: upgrade that number first. One connection covers up to 50 numbers.
  • Your Salesforce edition: Enterprise, Unlimited, Performance or Developer, or Professional if it includes API access. Starter, Essentials and Group editions don't work.
  • To create the app: a Salesforce user with the Create, edit, and delete External Client Apps permission. Administrators have it.
  • To connect: the Salesforce user who signs in must be able to read Contacts and Leads, and create and edit Tasks. If you want calls from unknown numbers to create Leads, they also need to create Leads.
  • One connection per organization: a Salesforce organization can only be connected once at a time.

Step 1: Open the connect screen and copy the callback URL

  1. In Wassenger, go to Developers โ€บ Connected apps.
  2. Click Connect an app and choose Salesforce. You can also open the Salesforce connect screen directly.
  3. On the Connect Salesforce screen, find the Before you start block and click Copy next to the callback URL. You'll paste it into Salesforce in the next step.

Keep this screen open. If your organization already has the External Client App, skip to step 3.


Step 2: Create the External Client App in Salesforce

Sign in to Salesforce as an administrator and open Setup (the gear icon, top right).

2.1 Start a new External Client App

Go to Apps โ€บ App Manager, click New App and choose New External Client App.

Salesforce App Manager with the New App menu open on New External Client App

2.2 Fill in the basic information

  • External Client App Name: any name your team will recognize, such as WhatsApp. The API Name fills itself in.
  • Contact Email: your email address.
  • Distribution State: leave it on Local.

Leave every other field empty.

Basic Information with the app name and contact email filled in

2.3 Turn on OAuth and paste the callback URL

  1. Open API (Enable OAuth Settings) and tick Enable OAuth.
  2. In Callback URL, paste the URL you copied in step 1. It has to match exactly.
  3. Under OAuth Scopes, select Manage user data via APIs (api) and click the right arrow (โ–ธ) to move it to Selected OAuth Scopes. Do the same with Perform requests at any time (refresh_token, offline_access).

Those two scopes are all it needs. Don't add any others.

Enable OAuth ticked, the callback URL pasted and the two scopes selected

2.4 Leave the flows off and require the secret

  • Under Flow Enablement, leave every option off.
  • Under Security, tick Require secret for Web Server Flow and Require secret for Refresh Token Flow.

The PKCE, refresh token rotation and refresh token time-to-live options are already on and can't be changed. Leave them as they are.

Flow Enablement all off and the two Require secret options ticked under Security

2.5 Create the app

Click Create at the bottom of the page. Salesforce opens the new app, marked Local and Enabled.

The new External Client App, Local and Enabled, with the Settings tab marked

2.6 Copy the Consumer Key and Consumer Secret

Open the Settings tab, expand OAuth Settings and click Consumer Key and Secret. Salesforce emails you a verification code first; enter it, and it shows both values. Copy them.

OAuth Settings with the Consumer Key and Secret button marked

Keep the Consumer Secret private. Paste it only into the Connect Salesforce page in the next step. Never send it by email or chat.
Just created the app? Salesforce can take a few minutes to start accepting a new app. If the next step says it doesn't recognize the Consumer Key, wait a couple of minutes and try again.

Step 3: Connect your numbers

  1. Back on the Connect Salesforce screen in Wassenger, choose the WhatsApp numbers to connect and click Connect Salesforce.
  2. Check the numbers on the confirmation page and click Continue to Salesforce. This page is valid for 10 minutes.
  3. A page called Connect Salesforce opens with the same steps you just followed. It stays valid for a day, so you can come back to it. Under Then, paste them here:
    • Choose Production, or Sandbox if you created the app in a sandbox.
    • If your organization signs in on its own address instead of the standard Salesforce login, open My organization does not use the standard Salesforce login and paste any URL from your Salesforce, such as the one in your browser right now.
    • Paste the Consumer Key and the Consumer Secret.
  4. Click Connect.

The page never keeps the Consumer Secret, for your security. If it shows a problem, fix what it says and paste the secret again before clicking Connect.


Step 4: Sign in to Salesforce and allow access

Salesforce asks you to sign in. The Tasks are created under the user who signs in here, so use the one that should appear on them in your reports. Salesforce then shows what the app will be able to do. Click Allow. You have about 10 minutes to finish this screen.

Before saving the connection, Wassenger checks that your organization serves the API version it uses and that your user can read Contacts and Leads. Then it takes you to the connection page, which shows Connected.


Step 5: Check that it works

  1. In Salesforce, make sure a Contact or Lead has a WhatsApp number in its Phone or Mobile field, written in international format, such as +34 600 111 222. A phone of your own works, as long as it isn't one of the connected numbers.
  2. If you just created or edited that record, wait 15 minutes: Salesforce needs a little time to find it.
  3. Send that number a message from one of the connected WhatsApp numbers, or have that phone write to you.
  4. Open the record in Salesforce. Its activity history shows a completed Task named like WhatsApp (Cloud API) ยท Sales ยท 1 message.
  5. In Wassenger, open the chat. The Connected apps card in the contact panel shows Salesforce, with a link that opens the record.

Nothing showing up? See Salesforce troubleshooting. To learn exactly what is logged and when, read What gets logged in Salesforce.