- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 01:28 AM
Hi Community,
I need help for inactive user approval send to manager approval in flow designer.
Example: Tommy is actual approver but Tommy is inactive in ServiceNow so the approval is skipping. This time the approval wants to trigger to Tommy Manager through flow designer for service catalog
Help me please.
Thanks,
Thanuja
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 02:43 AM
You can use the following script for the rules.
sys_id = "";
var obj = new GlideRecord("sys_user");
obj.get("46d44a23a9fe19810012d100cca80666"); // User sys_id
if(obj.active){
sys_id = obj.sys_id;
}else{
if(obj.manager){
sys_id = obj.manager;
}
}
return "ApprovesAnyU["+sys_id+"]";
Regards,
Vasu Cheeli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 05:33 AM
Great to hear. Thanks for marking my response as solution.
Regards,
Vasu Cheeli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 12:53 AM
Hi @Vasu ch
Ask for approval script for multiple user in flow designer - https://www.servicenow.com/community/developer-forum/ask-for-approval-script-for-multiple-user-in-fl...
Can you help me for this issue.
Thanks,
Thanuja