function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Role of Owner of Case either User or Queue


I need to get the Role of the owner of a case. The owner can be both a user and a Queue but I still need to get the Role. The Queue dont really have a Role, but you can set Queue Member as a role and I would need to get hold of that Queue Member Role.


Any ideas?


Unfortunately there doesn't seem to be any way to get hold of the queue member configuration, via apex or the metadata api.  I suspect you'll need to match the queue to a role via a custom setting or similar.