Running a WF script to set Assign To to a variable from the RITM catalog item

Peter Williams
Kilo Sage

Good Day, 

i want to run a script that will set the assign to on the RITM request to certain people as the workflow runs

 

i have this so far:

PeterWilliams_0-1702994962087.png

 

and then as the workflow runs the Assign_to will change on the variables the users select.

if this correct or am i missing anything 

 

 

 

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi @Peter Williams,

 

Yes. it is correct. make sure to include toString(); after variable name.

 

current.assigned_to = current.variables.avocat_lawyer.toString();

 

If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers! 👍🏻
Thanks,
Sagar Pagar

The world works with ServiceNow

View solution in original post

2 REPLIES 2

Sagar Pagar
Tera Patron

Hi @Peter Williams,

 

Yes. it is correct. make sure to include toString(); after variable name.

 

current.assigned_to = current.variables.avocat_lawyer.toString();

 

If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers! 👍🏻
Thanks,
Sagar Pagar

The world works with ServiceNow

it worked but you forgot the variables in your script

 

current.assigned_to = current.variables.avocat_lawyer.toString();