Building a flow to get app users and return a json object with list of emails.
Flow:
Powerapps
> Get App Role Assignments
> Parse JSON
> initialize variable ( varEmailArray )
> Apply to each
> > Append to array variable
> Compose ( json(varEmailArray) )
> Respond to powerapp
The flow fails in the > Compose action because an array is an invalid data type for the function.
The array is correctly populated within the > Apply to each
How do I get the array back to the app?