+ Start a Discussion
Domnic JohnsonDomnic Johnson 

Limit users to accept Old leads first from queue

We don't want our sales user cherry picking leads from the queue so we would want them to restrict the users to just be able to pick leads which are the oldest only.

Can someone help me with a trigger or validation rule which will limit

Please suggest how I can limit the sales users to only accept the oldest leads from the queue.

Raj VakatiRaj Vakati
You can do it by using batch apex 

NagendraNagendra (Salesforce Developers) 
Hi Dominic,

The purpose of a queue is to allow multiple users to access leads. If you are looking to not allow "cherry picking" I would recommend using the Round Robin method. Here are some sources to get you started. These will essentially assign the leads a # as they come in, then assign to different reps based on the assigned number. This allows you to assign regardless of standardized criteria like location, size, type, etc., and truly just randomize it.
  • http://wiki.developerforce.com/index.php/Round_Robin_Lead_Assignment_Trigger
  • http://sites.force.com/appexchange/apex/listingDetail?listingId=a0N3000000178fsEAA
Hope this helps.

Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are facing a similar issue.

Domnic JohnsonDomnic Johnson
Hi Raj,

Am not a developer so am not sure how I could use it the link. Could you guide me please