Approval Process in Workflow.

Kanna12
Tera Expert

Hello Every one,

 

I have create an approval process in workflow. I Have to put 2 conditions in one approval process(Approval level)

I have 4 change creation groups and need to set an approval to the specific group, once it approves it goes to next level approval where i have to send remaining 3 creation group approval and  manager approval.
(Note: workflow triggers to remaining team members and need approve any one in the  team member for all groups)

1.created sys_property and added  manager group sys_id.

2.created another sys_property and added 4 groups sys_id's.

 

I completed 1st level of approval and in the 2nd level approval i an truck very badly.
I have to call 2 sys_properties and checkeck the condition what is current change creation group and send to remaining team groups.

Please find below code. 
1st condition passing sucessfull and 2nd condition is not working and in the workflow waiting for: condition: I didn't see an condition approv any one from each group

 

answer = [];
var jsonProperty = new JSONParser();
var authorizeGroupProperty=jsonProperty.parse(gs.getProperty('Manager Approver Groups'));
var currentChgCreationGrp=current.u_change_creation_group;
if (currentChgCreationGrp.startsWith('ab')) {
    answer.push(authorizeGroupProperty["ab"]);
 
var oitauthorizeGroupProperty=jsonProperty.parse(gs.getProperty('Authorization group'));
for(var i in authorizeGroupProperty) {
if( i! == currentChgCreationGrp) {
answer.push(authorizeGroupProperty[i]);
}

 

 

Could you please any one helps me on this.

1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

Hello @Kanna12,

Please refer to the link below:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0538552

 

Mark my correct and helpful, if it is helpful and please hit the thumbs-up button to mark it as the correct solution.
Thanks & Regards,
Abbas Shaik