HR workflow assign to based on variable selection

joconnor
Tera Contributor

Hello!

 

We are trying to create a workflow that will assign the case to the person selected from a variable on the record producer.  We have tried a few things but nothing seems to be working. 

 

Any suggestions?

 

Thank you,

James

1 ACCEPTED SOLUTION

Max Dore
ServiceNow Employee
ServiceNow Employee

You can just use the Script field at the bottom of the Record Producer, if the variable is a reference to the sys_user table. Something like:

current.assigned_to = producer.variable_name

View solution in original post

3 REPLIES 3

Max Dore
ServiceNow Employee
ServiceNow Employee

You can just use the Script field at the bottom of the Record Producer, if the variable is a reference to the sys_user table. Something like:

current.assigned_to = producer.variable_name

John Zhang1
Kilo Patron
Kilo Patron

You can use Run Script activity with following code:

 

current.assigned_to = workflow.variables.variableName //get the workflow variable for assigned user

Thank you!