Hi, i want to show all the read only user for a flow inside my powerapps.
So in my flow i added the action 'list flow run-only user" the office connector to obtain the display name of the user
but when i want to save it i have this error message Respond_to_a_PowerApp_or_flow' has type 'Response' that could not be nested under an action of type 'foreach'.'.
it seems that this is not possible.
Do you have an idea how to do that ?
Thank for your ideas
Solved! Go to Solution.
Hi @ALP1 ,
You can only use a single item in the respond action. You could append all the output results from the loop, and/or joining them using 'Join' action with a certain separator, then building a split logic inside from Apps.
Inside flow; Please, Create a array variable and append all the results. Then use this array in the respond action.
You could build such a logic in the PowerApps;
On select properties of the button
Set(var, Split(FlowNameHere.Run().RespondOutputNameHere,"SplitterHere"));
ForAll(var, Collect(RandomCollectionNameHere, { ObjectID: Result } ) )
Items properties of the visual element (gallery or data table etc)
RandomCollectionNameHere
Regards,
Serbay
Hi @ALP1 ,
You can only use a single item in the respond action. You could append all the output results from the loop, and/or joining them using 'Join' action with a certain separator, then building a split logic inside from Apps.
Inside flow; Please, Create a array variable and append all the results. Then use this array in the respond action.
You could build such a logic in the PowerApps;
On select properties of the button
Set(var, Split(FlowNameHere.Run().RespondOutputNameHere,"SplitterHere"));
ForAll(var, Collect(RandomCollectionNameHere, { ObjectID: Result } ) )
Items properties of the visual element (gallery or data table etc)
RandomCollectionNameHere
Regards,
Serbay
Wow. It works like a charm.
I create a new variable
and these actions
I collect results
and the result into the apps
No need to use split function for now cause we are only 2 person to use this admin screen.
The idea is to add dynamically people in a flow as run only user...from the apps. No need to open powerautomate for mgmt now ^^
Thank you so much
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.
User | Count |
---|---|
26 | |
25 | |
23 | |
22 | |
14 |
User | Count |
---|---|
48 | |
35 | |
35 | |
31 | |
30 |