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

How can I randomly assign a user to a field.

I have a field name sales representative (Lookyp User).I have 4 users.
I want to assign randomly 3 users to the field.

Can this be done using the automaton tool like flow or process builder.

Thanks in Advance!

VinayVinay (Salesforce Developers) 
Hi Nyshaa,

You can achieve this by using process builder but you would need to define the user's to populate on the lookup field.

Check below references that can help you with your implementation


Hi Vinay,

I want to randomly select 3 users out of 4users. If I have t define the user then that wouldn't be called as a randomly selected user right?

Do you have another alternative solution.


VinayVinay (Salesforce Developers) 
You would need to implement custom logic to populate users randomly on the lookup field.

Try below example