Re: Return value from multiple array entries
Hi @JoeO,
Could you please share a screenshot of your flow's configuration?
I have made a test on my side and please take a try with the following workaround:
- Add a proper trigger, here I use Flow Button trigger.
- Add a Compose action, Inputs field set to following json data that you provided:
{
"in_groups": [
{
"group_id": 2,
"group_label": "All users",
"_is_system": true
},
{
"group_id": 4,
"group_label": "Global Users",
"_is_system": false
}
]
}
- Add a Variables-> "Initialize variable" action, Name set to FinalValue, Type set to String and Value set to empty.
- Add a "Apply to each" action, input parameter set to following formula:
outputs('Compose')?['in_groups']
- Within "Apply to each" action, add a "Compose 2" action, Inputs set to FinalValue variable. Add a "Compose 3" action, Inputs set to following formula:
item()?['group_label']
Add a "Set variable" action, Name set to FinalValue variable, Value set to following formula:
In first line, type the output of the "Compose 3" action. In second line, type the output of the "Compose 2" action.
- Under "Apply to each" action, add a "Compose 4" action, Inputs field set to FinalValue variable.
Image reference:

The flow works successfully as below:
More details about using expression in flow actions, please check the following article:
Use expression in flow actions
Best regards,
Kris