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.
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
- In Wassenger, go to Developers โบ Connected apps.
- Click Connect an app and choose Salesforce. You can also open the Salesforce connect screen directly.
- 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.
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.
2.3 Turn on OAuth and paste the callback URL
- Open API (Enable OAuth Settings) and tick Enable OAuth.
- In Callback URL, paste the URL you copied in step 1. It has to match exactly.
- 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.
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.
2.5 Create the app
Click Create at the bottom of the page. Salesforce opens the new app, marked Local and Enabled.
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.
Step 3: Connect your numbers
- Back on the Connect Salesforce screen in Wassenger, choose the WhatsApp numbers to connect and click Connect Salesforce.
- Check the numbers on the confirmation page and click Continue to Salesforce. This page is valid for 10 minutes.
- 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.
- 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
- 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. - If you just created or edited that record, wait 15 minutes: Salesforce needs a little time to find it.
- Send that number a message from one of the connected WhatsApp numbers, or have that phone write to you.
- Open the record in Salesforce. Its activity history shows a completed Task named like
WhatsApp (Cloud API) ยท Sales ยท 1 message. - 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.
