Unable to process: invalid ServicePresenceStatus Id Salesforce Exception

Unable to process: invalid ServicePresenceStatus Id Salesforce Exception

Exception:

Unable to process: invalid ServicePresenceStatus Id

Resolution:

Please use 15 digit Service Presence Id instead of the 18 digit Id.

For example, if you are using setServicePresenceStatus to set the Agent Presence Status, use the 15 digit Presence Status Id.

Use the following SOQL to get the Presence Status Id. 

SELECT Id, MasterLabel, DeveloperName 
FROM ServicePresenceStatus

The above SOQL query will return the 18 digit Id. Remove the last 3 digits to get the first 15 digits for the Id.

Leave a Reply