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

Can you assign ownership of an object to a queue?

Is it possible to assign object ownership to a Queue through the API (setting the OwnerId field to a Queue object)?  I see tis reference can be a group or user, but is there any way to assign it to a queue?
Nevermind, I just figured out this is possible since a Queue is a Group and ownership can be assigned to Users or Groups.  Please ignore...


Can you advise the update script text?  I can normally do updates via ajax.  I am getting errors when I try to set xyzobject.Owner.Id to the Id of the queue.  Any help would be appeciated.



It should be xyzobject.OwnerId, not xyzobject.Owner.Id.

~ sfdcfox ~