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
SV MSV M 

Contact owner assignment using round robin algorithm

I have a scenario where I have a Custom Object 'Owner Assignment' with fields Owner ID filled with different Users. I want to develop a trigger which will assign the Owner from 'Owner Assignment' object in Round Robin fashion whenever a Contact is created. Can someone help me build the logic for the above scenario since I am new to Salesforce...
Thanks in Advance...
Best Answer chosen by SV M
AbhishekAbhishek (Salesforce Developers) 
https://salesforce.stackexchange.com/questions/313597/contact-owner-assignment-using-round-robin-algorithm

Sai I think your query is also answered in the above blog.

But if you need the sample code go through the below document,

https://gist.github.com/eskfung/f342b47ecc0849deb0cb

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.

All Answers

AbhishekAbhishek (Salesforce Developers) 
https://salesforce.stackexchange.com/questions/313597/contact-owner-assignment-using-round-robin-algorithm

Sai I think your query is also answered in the above blog.

But if you need the sample code go through the below document,

https://gist.github.com/eskfung/f342b47ecc0849deb0cb

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.
This was selected as the best answer
SV MSV M
Hi Abhishek,
Thanks for your quick help...I will try to implement my logic with the reference.