Trigger on UserServicePresence object can be created after we enable omnichannel. Can we package this trigger? As target org can be having omnichannel settings disabled.

Salesforce doc says trigger is not supported on this object https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userservicepresence.htm


I have faced with similar issue in my omnichannel implementations and found triggers on this object can be created but they do not fire, or at least shows up in apex debug logs.

  • Is there any workaround to capture status change of User?? – Jyoti Goyal Jan 10 '20 at 7:07
  • 1
    I was able to create, deploy and run a trigger on the UserServicePresence SObject (Winter '21) – Paweł Hajduk Sep 23 '20 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.