2nd Level approval Workflow

nameisnani
Mega Sage

Hi Team ,

 

Can anyone please me how to define 2nd level approval for each every option .

 

nameisnani_0-1709628240122.png

 

For every - option we have to give line manager approval , and for each option 2nd level approval is different , 

 

2nd level approval is different , I have user to two many Approval group here , which will occurs so many approval group activity . How to reduce this 2nd level approval , here 

 

nameisnani_1-1709628240133.png

 

 

 

Can anyone please help . me help me here with steps . 

 

Can anyone please help how can we reduce adding 2nd level approval for every option .

 

NOTE :-  As u can - see in the above image , for each option 2 nd level approval is different .

 

Thanks in advance 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @nameisnani 

 

I will recommend use the Flow Designer and you can the change approval policies for same. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG ,

 

Currently we are working with Workflow , could you please suggest any idea in workflow .

Hi @nameisnani 

 

@Sohithanjan G also suggested , and I will say try to use the approval policy with these conditions. 

 

AGLearnNGrow_0-1709632707360.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @nameisnani 

 

  • Step 1: Create an activity of Approver User with this script below

 

 

answer=[];

answer.push(current.variables.requested_for.manager);

 

 

  • Step 2:  Add the another approval user activity with below script

 

 

answer = [];
// Define a mapping of Azure file names to approval groups
var azureFileToGroupMap = {
    "FS Support": "AFS_FS_IT_SUPPORT",
    "FS Corporate Action": "AFS_FS_CA" 
};

// Query the sys_user_group table based on the mapped approval group
var approvalGroup = azureFileToGroupMap[current.variables.azure_file];
if (approvalGroup) {
    var groupGr = new GlideRecord('sys_user_group');
    groupGr.addQuery('name', approvalGroup);
    groupGr.query();    
    if (groupGr.next()) {
     answer.push(groupGr.sys_id);
     }
}

 

 

SohithanjanG_0-1709630162895.png

 
Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)