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
Kunal Purohit 4Kunal Purohit 4 

there are two system Admin in Org. If I am creating two contact record, each contact record should be assigned to each user. Likewise, if there are 3 System Admin, so whenever 3 Contact record is created, it should be assigned to 3 different user.

Hello Follks,

How to write apex trigger for given scenario?
There are two system Admin in Org. If I am creating two contact record, each contact record should be assigned to each user. Likewise, if there are 3 System Admin, so whenever 3 Contact record is created, it should be assigned to 3 different user(Using Round Robin Technique).