Service Catalog List Collector Approval using Flow Designer

Chad Wilhelm1
Tera Expert

Hello hope everyone is healthy, I have a requirement to send approval if one value is selected in list collector variable.   So if user select value a plus other values send approval to approval group.   If value a is not selected skip approvals.   Also wondering if this can be done in ask for approval action in flow.    Thanks for the assistance!

 

find_real_file.png

find_real_file.png

2 REPLIES 2

Tanushree Doiph
Mega Guru

Hey 

Chad Wilhelm,

Refer below link

https://community.servicenow.com/community?id=community_question&sys_id=f9b2f49bdbfdb7c014d6fb243996...

 

Please mark my comment correct and helpful if you feel like.

Thanks

Tanushree

hi Chad Wilhelm,

You can access the list collector values in your workflow, It should return a list of comma separated list of sys_id.

 

If your list collector is referring to group table then you can add the following script in the advanced script of approval group activity

var answer = [];

var collector = current.variables.list_collector_variable.toString(); // (Replace list_collector_variable with your variable name)

var list = collector.split(",");// return a list of comma separated list.

for(var i=0; i< list.length; i++){

  answer.push(list[i]);       // push each approval groups

}

for more detail refer the following link.

https://community.servicenow.com/community?id=community_question&sys_id=3a824721dbd8dbc01dcaf3231f96...

 

If it help mark helpful or correct 

Thanks and regards

Anil