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
Snehal Gaware 15Snehal Gaware 15 

I need to create a lookup for queues on case object. Is there any workaround for this requirement

I need to create a lookup for queues on case object. Is there any workaround for this requirement
Khan AnasKhan Anas (Salesforce Developers) 
Hi Snehal,

Greetings to you!

It is an Idea (https://success.salesforce.com/ideaView?id=08730000000Brmk) to create a lookup for queues. You can also upvote it so that we can get this in the future.

However, for workaround, you can try a validation rule or use a FLOW. 

Validation rule: 

AND(($Profile.Id = '00ed00000019GHH' || $Profile.Id = '00ed0000001A0Wk'), 
NOT(CONTAINS(Owner:Queue.QueueName, "BBH")), 
NOT(CONTAINS(Owner:Queue.QueueName, "DeSales")), 
NOT(CONTAINS(Owner:Queue.QueueName, "Tier2 Staff")), 
NOT(Owner:User.UserRole.Name ='ABC Power User'), 
NOT(Owner:User.UserRole.Name ='XYZ Partner User')
)

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas