- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 02:29 AM
I have one catalog item and it has only two fields:
1.Requested for
2.Select Group
Once request is submitted, it will trigger approval to selected group's manager. and for this I have written script (I know we can use get variables action and we can do it without writing script for it) in Rules field, and it is working fine
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 01:03 AM
@Shamma Negi - Thanks for your response!
Actually, there was an issue with the script. I replaced it with the below script in Rules it started working fine.
var appr = fd_data.trigger.request_item.variables.select_group.manager;
gs.log('Group Manager SysID: '+appr);
gs.log('Group Manager Display Name: '+appr.getDisplayValue());
return 'ApprovesAnyU[' + appr + ']OrRejectsAnyU[' + appr + ']';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 02:52 AM
Check there is one Business Rule or any other script which does this if the condiiton is met.
Please check the business rule in your instance.
Regards,
Shamma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 01:03 AM
@Shamma Negi - Thanks for your response!
Actually, there was an issue with the script. I replaced it with the below script in Rules it started working fine.
var appr = fd_data.trigger.request_item.variables.select_group.manager;
gs.log('Group Manager SysID: '+appr);
gs.log('Group Manager Display Name: '+appr.getDisplayValue());
return 'ApprovesAnyU[' + appr + ']OrRejectsAnyU[' + appr + ']';