Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Flow

RoshaniB
Tera Expert

This is the script I have used for assigning group in workflow but it's not working for flow .

 

 

1 ACCEPTED SOLUTION

try using this script might work..

var task = fd_data.trigger.current;

var requester = new GlideRecord('sys_user');
if (requester.get(task.request_item.requested_for)) {

    var location = new GlideRecord('cmn_location');
    if (location.get(requester.location)) {

        task.assignment_group = location.u_it_fulfillment_group;
    }
}

 

If my response helped mark as helpful and accept the solution.

View solution in original post

9 REPLIES 9

Could you tell mi how should I modified it

Hello @RoshaniB ,

 

First let me know which type of script is this custom action script or  flow toggle script

 

Flow toggle script

try using this script might work..

var task = fd_data.trigger.current;

var requester = new GlideRecord('sys_user');
if (requester.get(task.request_item.requested_for)) {

    var location = new GlideRecord('cmn_location');
    if (location.get(requester.location)) {

        task.assignment_group = location.u_it_fulfillment_group;
    }
}

 

If my response helped mark as helpful and accept the solution.

yashkamde
Mega Sage

Hello @RoshaniB ,

 

are you using this script in toggle script?

In flow while working with script generally we use fd_data object to get and return values.

 

If my response helped mark as helpful and accept the solution.