- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
This is the script I have used for assigning group in workflow but it's not working for flow .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Could you tell mi how should I modified it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @RoshaniB ,
First let me know which type of script is this custom action script or flow toggle script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Flow toggle script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @RoshaniB ,
Okay you need to use fd_data object, you can refer yash kamde script here .
If my response helps you then mark it as helpful and accept as solution. You can accept multiple solution 😀,
Regards,
Aditya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
