When attempting to install Salesforce Omni-Channel for Aircall, you might see an error indicating that the UserServicePresence object cannot be found. This article explains why this happens and how to resolve it.
Symptom
When installing Salesforce Omni-Channel for Aircall, you may see an error message that includes lines such as:
(User_Service_Presence_Changed) The object named UserServicePresence can't be found. Invalid type: UserServicePresence Variable does not exist: p Invalid type: Schema.ServicePresenceStatus Variable does not exist: s
Note: These errors indicate that required Omni-Channel objects and fields are not available in your Salesforce setup.
Cause
This issue arises when the Salesforce Omni-Channel feature has not been activated or configured in Salesforce before attempting to install the Aircall Omni-Channel integration.
Because Omni-Channel has not been correctly set up, the following fields and objects are unavailable:
UserServicePresenceServicePresenceStatus
Solution
To resolve this issue, follow these steps.
Steps
Delete the current Aircall Omni-Channel package from Salesforce if it was previously installed.
-
Ensure that Omni-Channel is fully set up in Salesforce:
Go to Salesforce Setup.
Search for Omni-Channel Settings and enable the Omni-Channel feature if it is not already activated.
Configure the necessary Service Channels and Presence Configurations in Salesforce.
-
Once Omni-Channel is set up in Salesforce, retry the installation process for the Aircall Omni-Channel integration:
Click Install for All Users.
Grant the necessary permissions by checking Yes, grant access to these third-party web sites and click Continue.
For detailed steps on setting up Omni-Channel in Salesforce, refer to the article: Installing Salesforce Omni-Channel for Aircall.
Important: Omni-Channel must be activated and configured in Salesforce before the Aircall Omni-Channel package can be installed successfully.
Additional information
Additional resources that might be helpful: