The Thena <> Salesforce Cases Integration is built for:
- Product Support Agents who want to work and live in Salesforce Cases, but need better visibility of requests that originate in Slack. Thena creates a bi-directional flow of information from Slack to Salesforce Cases, so context of the conversation & status updates are tracked accordingly.
- Customer Success Managers who want to more easily re-direct issues, bugs, etc to their support team that uses Salesforce Cases.
At a high-level, using Salesforce Cases and Thena will enable a workflow where requests that are determined to be better suited for the Support Team to handle will be bi-directionally synced across the two platforms (Slack and Salesforce Cases). The flow looks something like this:
- A customer reaches out to the vendor (you) in Slack.
- From the channel, the vendor (likely a CSM or someone related) determines this requires the support team in Salesforce Cases. They create a ticket using the workflow from Slack, the Web App, or the Triage Channel.
- The ticket gets created in Thena & Salesforce Cases. The Support Team will see a new ticket in Salesforce Cases, and can work to solve and prioritise accordingly.
- All context that is shared by the customer (files, links, etc) are also sent through to Salesforce Cases.
- Create a User and Secret token on Salesforce (optional)
- Create a connected app on Salesforce
- Add Salesforce details on Thena
- Map your slack channels with customer accounts on Salesforce
The owner of the cases is this user by default.
- Create a user that will act as "Thena" on Salesforce or you can use your current admin account details. This is a necessary step because we want to prevent going down the route of other apps that force all users to authenticate their SFDC login details.
- Click on the gear on top right -> Setup
- Click on Create on top right -> User
- Once this user is created, save the username + pwd (you can share it with us for us to set up the next few steps if you'd like) and login with the same user.
- Login as this user and go to the profile page and create a secret token via My Personal Information -> Reset My Security Token
This connected app on Salesforce will be used to read/write cases from Salesforce.
- Navigate to SF Developer Console (https://.develop.lightning.force.com/lightning/setup/)
- Select “Setup” from the top-right gear icon.
- In the left nav bar, go-to Apps and select Manage Apps . Click on New Connected app option from right of the modal.
- In the new connected app menu , provide the name of the app: thena-sfdc.
- Check “enable user provisioning” and “enable oauth flow”.)
- Within the oauth flow modal , provide the following callback URL : [https://passport.thena.ai/oauth](https://passport.thena.ai/oauth
- Within the API permissions , provide the following permissions :
- Access Lightning Objects
- Access the Identity URL Service
- Access Unique User Identifiers
- Manage User Data via APIs
- Manage User Data via Browsers
- Perform Requests at any time
- Optional :
Full API Access
- Complete the Connected App setup on the menu.
- After connected app setup, navigate to App Manger and search for : thena-sfdc-poc. From the down-arrow icon, click View.
- In the App details page , click on
Manage consumer details.
Change Data Capture should be enabled
Please make sure that Change Data Capture is enabled for the Case object. Refer to the Salesforce Cases FAQs on how to do that.
Not doing so will stop SFDC from sending any Case updates or replies to Thena and the integration will not work
- Login to https://app.thena.ai/
- Go to the Integrations tab under Settings - https://app.thena.ai/settings?tab=integrations
- Search for Salesforce and Click Add Integration
- Fill in the details
- User ID and Pass of the new user created
- Secret Token of the new user created
- Consumer Key and Consumer Secret of the New App Created
- Your Salesforce URL
- Select the Request Type as Tech Supoprt
- Click Test Connection
- Search for the customer channel on the left
- Select the account on the right from the drop down
To view your mapped channels, select Mapped Channels from the dropdown on the top right
Thena is now setup to work seamlessly with Salesforce Cases
We link the ticket created on Salesforce cases to the mapped account but the case owner is set as the user you created while setting up the integration or if you did not create a new user, the owner is set as the Admin who integrated Salesforce cases with Thena
No - it means that bold text on Slack appears within the * (asterisk ), italics appears within _ (underscore) and code appears between triple ```
Comments from an agent via Salesforce Cases are sent as your Workspace i.e. workspace name and the workspace logo.
Attachments sent will show up as Thena on Slack as Slack does not support white-label for file uploads
Debugging FAQ: How to Check CDC for Salesforce Updates
If you're not receiving updates from Salesforce as expected, it might be due to the Change Data Capture (CDC) settings. Follow this FAQ to troubleshoot and ensure that CDC is enabled and configured correctly for your Salesforce instance.
Change Data Capture is a feature in Salesforce that allows you to track changes made to records in your organization. It captures changes such as inserts, updates, deletes, and undeletes and makes these changes available for consumption in near real-time.
To check if CDC is enabled for your Salesforce instance, follow these steps:
- Log in to your Salesforce account.
- Go to Setup by clicking on your profile picture and selecting "Setup."
- In the Quick Find box, type "Change Data Capture."
- Click on "Change Data Capture" to see a list of objects that have CDC enabled.
If CDC is not enabled for an object, follow these steps to enable it:
- In the "Change Data Capture" settings page, find the object you want to enable CDC for.
- Click on the object's name.
- On the object's CDC settings page, click the "Enable" button.
To ensure that CDC events are being generated for an object, follow these steps:
- In the "Change Data Capture" settings page, find the object of interest.
- Click on the object's name.
- On the object's CDC settings page, look for the "Event Log Files" section.
- If there are log files listed, it indicates that CDC events are being generated.
If you're not receiving CDC events, here's how to verify if they're being sent:
- Check your integration or system that consumes CDC events for any errors or connection issues.
- Ensure that the endpoint or destination you've configured to receive CDC events is correct and operational.
- Review your Salesforce integration settings to ensure that the correct CDC events are subscribed to and being forwarded to your system.
Yes, there are some limitations to CDC in Salesforce. These include:
- CDC is available for a limited set of standard objects and custom objects.
- CDC events have a retention period. If not consumed within that period, they might be lost.
- CDC events are subject to Salesforce's API limits and quotas.
Users with the "Modify All Data" permission or appropriate administrative privileges can enable and configure CDC for objects in Salesforce.
If you're still facing issues with CDC after following the above steps, consider reaching out to your Salesforce administrator, Salesforce support, or the support channels for the application or system that consumes the CDC events.
By following these steps and guidelines, you should be able to diagnose and resolve issues related to Change Data Capture in Salesforce and ensure that you're receiving the updates you expect.
Updated 12 days ago