If any group is not having user then for group approval then workflow need to stuck over their

SD_Chandan
Kilo Sage

If any group is not having user then for group approval then workflow need to stuck over their but it is approving my request directly 

can you please help me in this scenario ....

 

I am using advance option to assign group using this script 

answer = [];
var com = current.variables.request_company.getDisplayValue();
var app = com + " SDM Group";
var U = new GlideRecord('sys_user_group');
       U.addQuery('name', app);
       U.addQuery('active',true);
       U.query();
       if (U.next())
   {        
        answer.push(U.sys_id);
    }

 

Thank you
Chandan
1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@SD_Chandan 

it's OOTB behavior, if group has no members it will auto approve

Why your group has no members? Ideally this should not happen in PROD

Check with your customer what should happen if group has no member

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@SD_Chandan 

it's OOTB behavior, if group has no members it will auto approve

Why your group has no members? Ideally this should not happen in PROD

Check with your customer what should happen if group has no member

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

SD_Chandan
Kilo Sage

@Ankur Bawiskar 
Sure I'll check with process team and work accordingly.

 

 

Thank you for help, appreciated 

Thank you
Chandan