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

Aman Kumar S
Kilo Patron

Hi @thanuja thanuja 

You just to need an validation using IF flow logic , to check if approver is inactive, then check for the approver's manager, and send approval to the manager which you easily achieve using core flow actions

Best Regards
Aman Kumar

Hi Aman,

 

Thanks for reply for particular user how can i check if user is active or not in flow designer by using flow designer. 

Can you please help more easy.

 

Thanks,

thanuja

thanuja thanuja
Tera Contributor

please find the attached ss

thanuja thanuja
Tera Contributor

test ss.PNG