regarding flow designer

shreya_3009
ServiceNow Employee
ServiceNow Employee

my task is to edit the flow designer, where if the requestor is president then the approvals should reduce to 2(hr and manager).In the present flow when someone raises a request, it goest to hr first then manager and then managers manager.so basically if president raises a request first level hr should remain same and then it should go to manager (no managers manager approval is required). In the flow, approval set is present in the approval section.how can i complete my task?how can i add the conditions?or should i change any code?

 

1 ACCEPTED SOLUTION

Hi @shreya_3009 ,

 

You need to modify the subflow script to bypass approvals based on your specified conditions. However, before making any changes, ensure that this subflow isn't being used in other flows, as that could affect their execution. If it is, create a copy of the subflow, apply your changes to the new version, and use that updated subflow instead.

 

Thanks

Anand

View solution in original post

9 REPLIES 9

Anand2799
Tera Guru

Hi @shreya_3009 ,

 

Could you provide some more details about approval set? Is this a custom action or subflow?

 

Thanks

Anand

its a sub flow,we are just giving the sys id of the approval set

 

in the approval set,first,second and third level approvals are managed using the scripting

Hi @shreya_3009 ,

 

You need to modify the subflow script to bypass approvals based on your specified conditions. However, before making any changes, ensure that this subflow isn't being used in other flows, as that could affect their execution. If it is, create a copy of the subflow, apply your changes to the new version, and use that updated subflow instead.

 

Thanks

Anand

thankyou,that helped