Hi,
I have this scenario Im trying to resolve:
When user opens the app the user is identified as either User 1, User 2 etc etc.
I have an SP-list that looks like this
Powerapps triggers a flow and asks for which User it is.
Based on this input the UserAccess list is filtered,
so User 1 will output:
User 1 Site A
User 1 Site B
After this I have another list that looks like this
Automate filters this list based on the site from the previous list,
so this will give all results for Site A and Site B
whitin an Apply to each.
I then use the Select to Select all values from the filtered SiteResults
And after this I send the outputs of the Select back to PowerApps
This returns data to powerapps,
but I can't for the life of me figure out how to put this in a collection
I can put in a variable without issue
Set(varSiteResults,
TestGetUsersSites.Run(
"User 1"
).testcollection
)
I tried this for a collection
ClearCollect(
QTestUser,
ForAll(
Table(ParseJSON(TestGetUsersSites.Run("User 1").testcollection).body),
{
Site: Text(Value.Site),
Result: Text(Value.Result),
Period: Text(Value.Period)
}
)
)
But it just tells me:
Because I guess the flow doesnt return an array but rather an object?
I also tried appending it to an array and sending it back to PowerApps but no luck.
Anyone know how to send a filter array from an apply to each to powerapps and store it in a collection?