Slack Integration Setup

You’ll need to have permission to create a Slack app to complete this tutorial. You’ll also need permission in Salesforce to create a Remote Site.

Before you can enable Slack notifications, you’ll need to follow these instructions to create a Slack app:

  1. Sign into Slack.
  2. Navigate to
  3. Click Your apps.
  4. Click the Create New App button.
  5. Select the From scratch option.
  6. Fill in the App Name (e.g. “Kubaru”).
  7. Select your Slack workspace.
  8. Click the Create App button.
  9. Under App features and functionality, click the Incoming Webhooks tile.
  10. In the top-right corner of the Activate Incoming Webhooks card, click the toggle to On.
  11. In the left menu, click OAuth & Permissions, then scroll down to the Scopes section.
  12. Under Bot Token Scopes, click the Add an OAuth Scope button, then search for and select “chat:write”. Repeat this process to add “” and “users:read”.
  13. We suggest downloading the Kubaru logo to use as your app’s icon. To do so, open this link, right-click the image and select Save image as, and save the file to your computer.
  14. Back in your Slack app, at the top of the left menu, click into Basic Information.
  15. Scroll down to the Display Information section, and under App icon & Preview click + Add App Icon. Navigate to and select the logo image file you saved.
  16. At the top of this same page under the Install your app section, click the Install into Workspace button.
  17. Select an existing channel under the Where should [App Name] post? section, or create a new one and refresh the page so you can select it.
  18. Click the Allow button. You will be redirected back to the Basic Information page and should see a success message indicating that your app has been installed.
  19. In the left menu, click OAuth & Permissions.
  20. Under OAuth Tokens for Your Workspace you will see a Bot User OAuth Token. Click the Copy button on the right and hold onto it for now.

Next you’ll need to connect your Slack app to your Salesforce org:

  1. Sign into Salesforce and navigate to the Setup menu.
  2. Search for and select Remote Sites using the Quick Find search bar.
  3. Click the New Remote Site button.
  4. For the Remote Site Name, enter “Slack”.
  5. For the Remote Site URL, enter “”.
  6. Click Save.
  7. Navigate to the Settings tab of the Kubaru Console.
  8. In the Notifications section, click the Add Token link under Slack Notifications.
  9. Paste the API token you copied previously and click the Validate Token button. You should see the message “Slack API token is valid.” If not, you’ll want to verify that the token you entered is correct.
  10. Click Save Token.
  11. Update your Slack Notifications setting from “Disabled” to “Enabled” or “Enabled, users can override”. 

And that’s it – whew! Nice work 🥳

Things to keep in mind

  • Slack notifications are not supported for free editions of Slack.
  • Slack users will be automatically matched up to your Salesforce users based on email address. If for some reason a user’s email is mismatched between the two systems, you will need to add their Slack ID manually. See User Not Receiving Slack Notifications for more information.
  • Was this article helpful?