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
Domnic JohnsonDomnic Johnson 

Change queue owner after X hours

Hi, 

I want to have a rule where if a lead is created between 8am to 6pm I want the lead to be transfered to a different lead queue.

 
VinayVinay (Salesforce Developers) 
Hi Domnic,

You can try using Assignment rules or time-dependent workflows to change queue owner.

https://trailblazers.salesforce.com/answers?id=906300000010wMdAAI

Thanks,
Domnic JohnsonDomnic Johnson
Hi Vinay, 

I need the rule to fire every time the lead is added back to a different queue.

Time Lead comes into the queue | No of hours before lead is transfers back to User A

9:00am to 10:00am | 4  Hours
10:01am to 11:00am  | 4 hours
10:01pm to 11:00pm   | 13 hours
11:01pm to 12:00am   | 12 hours
More..
 
VinayVinay (Salesforce Developers) 
You might need to build a custom solution,  check below reference which is closer to your requirement, and make changes accordingly.

https://jenwlee.com/2016/03/29/re-assign-a-lead-back-to-the-queue-due-to-inactivity/

Thanks,