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
puneet-mishrapuneet-mishra 

Populate Field When Record Created

Problem:- if i assign my user to a queue and then i want when new record is created for my object ( let it be Incident having field which has lookup on User) a field (let name it "Queue") should get autopopulated, how this can be acheived if i don't want to write trigger,

paulo.orquillopaulo.orquillo

simply create a workflow rule, field update the owner as the queue.

puneet-mishrapuneet-mishra

thanks for replying , let me explain my problem
on User i creted a new user (let me name User as "MAX") and assign it to Queue (let Queue name is "Email")

 

Now when i create a new record on custom Object (let it be "Incident") on which i have lookup on User and 

i also have a field name "queue" which will store the value of Queue in which User is added

(in this case when i select User as Max  then value in queue will be Email)

 so when i select User os Max and click Save then queue field should get populated with value "Email"

 

"dont want to use trigger, niether want to create picklist on User, but can create text field on User"

paulo.orquillopaulo.orquillo

well thats not possible without writing some code.

 

You need to query the following,  get the user if it belongs to a queue, if it does get the queue name and update your custom queue field with the queue name.