Using RITM variables in workflow

Joe Taylor
Giga Guru

I have an catalog item with various variables.

Two of them are pulldowns of people in specific user groups.

Let's call the first pulldown variable:  user1   (user1 is in a group called "FirstGroup")

Let's call the second pulldown variable user2.  (user2 is in a group called "SecondGroup")

I want to make "user1" my approver in the workflow.

After the approval step, I want to create an SCTASK and assign it to Group "SecondGroup" and also specifically to "user2".

What's the best way to do this in my workflow?

1 ACCEPTED SOLUTION

use below for dynamic

answer = [];
answer.push(current.variables.hrbp.toString());

For task 

Is your hrbp variables a reference field ? can you share screenshot?

aslo try

task.setDisplayValue('assignment_group', 'HRD Group');
task.assigned_to = current.variables.hrd.toString();

View solution in original post

12 REPLIES 12

If nothing works, can you try

answer=current.variables.hrbp+'';

 

and in task script

task.assignment_group.setDisplayValue('HRD Group');
task.assigned_to = current.variables.hrd+'';


Please mark this response as correct or helpful if it assisted you with your question.

Sanjiv,

This syntax is not being accepted.

Are you sure you want me to put in the characters:  +"; at the end?

Adding a '' convert the value to string. But good that you got a solution.


Please mark this response as correct or helpful if it assisted you with your question.