You need to sign in to do that
Don't have an account?
naveen polavarapu
Apex trigger for round robin
Hi,
I have a trigger for Round Robin and working as expected, now there is a request to handle if Lead country is "India" then it should route to a specific Queue. This request should be addressed without code changes as it is a manged package but via Custom settings.
I am very new to Coding. please suggest
I have a trigger for Round Robin and working as expected, now there is a request to handle if Lead country is "India" then it should route to a specific Queue. This request should be addressed without code changes as it is a manged package but via Custom settings.
I am very new to Coding. please suggest
you can use [Lead Assignment Rule] , you need not coding at all.
if country is "India" , then route to a specific [Queue India]
if country is "japan" , then route to a specific [Queue Japan]
I hope it will help you
Thank you so much for your response,
Our Trigger will override Lead Assignment rules, I mean if our trigger fires then Lead Assignment rules will not fire that is the reason we are searching for other options like Custom Settings.
I got what you want to do now. Please read url below, it will help you to solve your problem.
https://salesforce.stackexchange.com/questions/185354/unable-to-disable-assignment-rules/186152
https://developer.salesforce.com/docs/atlas.en-us.212.0.apexcode.meta/apexcode/apex_class_Database_AssignmentRuleHeader.htm
Check below link, I hope it may help you
https://sfdcpanther.wordpress.com/2017/09/03/round-robin-assignment-using-trigger-and-workflow-rule/
Thanks