when user Inactive approval send to manager for RITM approval in workflow.

thanuja thanuja
Tera Contributor

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

1 ACCEPTED SOLUTION

Vasu ch
Kilo Sage

Hi @thanuja thanuja 

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

 

View solution in original post

11 REPLIES 11

Great to hear. Thanks for marking my response as solution.

 

Regards,

Vasu Cheeli

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