Salesforce: install and connect the CaseXchange package
This guide connects your firm's Salesforce org to CaseXchange. It takes four steps, and the Salesforce page in CaseXchange (Settings → Integrations → Salesforce) shows each one as Done or To do.
Already connected with an older package? If your org has the CaseXchange Referral package (version 3.x or 4.x), keep it: it keeps working, and the Salesforce page shows which version you have. Don't uninstall it or install Case Xchange 5.0 over it: uninstalling deletes your CX Intake records. To change versions, email help@casexchange.com first. The guides for older versions are in the Salesforce Integration Version Guide.
You need:
- A Salesforce admin for your org, to install the package and give people access.
- A CaseXchange firm admin, to connect Salesforce and create the API key.
- A Salesforce integration user: a user set aside for integrations, for example casexchange.integration@yourfirm.com. Don't connect with a staff member's own login: when that person leaves or changes roles, the sync stops.
If your firm has a Salesforce sandbox, set everything up there first, paired with our UAT environment (email help@casexchange.com for UAT access), then repeat in production.
Step 1. Install the package in Salesforce
Install Case Xchange 5.0. When Salesforce asks, choose Install for Admins Only.
- Production or Developer Edition org: https://login.salesforce.com/packaging/installPackage.apexp?p0=04tgK000000a2rJQAQ
- Sandbox: https://test.salesforce.com/packaging/installPackage.apexp?p0=04tgK000000a2rJQAQ
Then give people access with the package's permission sets:
- Case Xchange Admin: the integration user, and anyone who sets up the package. Admins get it when the package is installed.
- Case Xchange Referral Permissions: staff who send cases to CaseXchange.
- CX Log Access (optional): whoever troubleshoots the integration.
Litify orgs (Litify 37.11 or later) also install Case Xchange for Litify 2.0:
- Production: https://login.salesforce.com/packaging/installPackage.apexp?p0=04tgK000000aHOvQAM
- Sandbox: https://test.salesforce.com/packaging/installPackage.apexp?p0=04tgK000000aHOvQAM
Assign Case Xchange for Litify: Sync User to the integration user and Case Xchange for Litify: Read Only to staff who should see the CaseXchange fields. If your org has the older Case Xchange to Litify Connection package, don't install this one next to it: email us first.
Step 1 on the CaseXchange Salesforce page turns to Done once CaseXchange sees the package in your connected org. That can take up to 15 minutes after installing.
Step 2. Connect Salesforce to CaseXchange
- In the browser you'll use, sign in to Salesforce as the integration user.
- In CaseXchange, go to Settings → Integrations → Salesforce.
- In step 2, Connect Salesforce, click Connect production org and approve access on the Salesforce screen.
The org then shows as In use and Connected. A Salesforce sandbox connects to our UAT environment, not to production CaseXchange. If the page later shows Login refused, click Connect again. To move to a different org, use Replace production org: your sync settings stay and work with the new org.
Step 3. Give the package an API key
- In CaseXchange, step 3 on the same page: Generate API Key. Name it after the org, for example "Production SF Package". The key is shown once: copy it and pass it to your Salesforce admin through a password manager, not email or chat.
- In Salesforce: App Launcher → Case Xchange → Case Xchange Admin tab → Authorization Setup → Update Credential.
- Environment: Production, or UAT if the key came from our UAT environment.
- Paste the key, Save Credential, then Test Connection. You should see "Connected successfully (HTTP 200)".
Create the key with a firm user's account. A key an integration partner creates stops working when their access to your firm ends, and the package with it. You can see and revoke keys under Settings → Integrations → Public API.
Step 4. Choose what syncs
Your integration partner (the Salesforce consultant your firm works with) or the CaseXchange team sets which Salesforce records your cases go to and how statuses come back. Step 4 on the Salesforce page shows whether the sync is running. See Salesforce Sync v2: how it works and who sets it up.
Troubleshooting
- Test Connection fails with HTTP 401. The key is wrong, revoked, or from the other environment. Check Environment and paste the key again.
- Step 1 says the package isn't found. Make sure it's installed in the org you connected. Allow up to 15 minutes.
- Step 2 says Login refused. Salesforce no longer accepts the saved login (for example, the integration user's password changed). Click Connect again and sign in as the integration user.
- Your org has an older package. CaseXchange Referral 3.3 to 4.x keeps its key on the Case Xchange Admin v3 tab. Packages before 3.3 sign in with a CaseXchange OAuth client instead of an API key: you'll find it under "Packages before version 3.3" at the bottom of the Salesforce page.
Questions? Email help@casexchange.com.