Push values into an array in flow designer

Community Alums
Not applicable

I'm creating a catalog item where the user has a few options to select via select box. After approvals in the flow, we are looking to automate the group access based on the selection. The automation portion is complete in a separate workflow, but I am stuck figuring our how do I allow users to select multiple options and if approved they will assign to every group. Currently it will only automate to one selection even if multiple options are selected on the catalog item.

 

How do I get values from the select boxes and push them into an array? Next how do I create an action and parse the variable as a string?

2 REPLIES 2

BharathChintala
Mega Sage

@Community Alums  your requirement is not clear for me. Can you explain step by step

 

if you just want script

var list = current.variables.selectboxname;

var arr = list.split(',');

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

Community Alums
Not applicable

I have a catalog items that has 6 check box selections. Based on the selection, we have subflow that will automate to an AD group. I'm running into an issue where if multiple check boxes are selected, it will only automate to one group. I'm looking for the correct step to add in the flow to fix this issue. I was told an option is to push the variables through an array and then to parse them as a string