cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Help on Array

Hi, 

 

I am getting data from excel table using HTTP. I need to show those rows in power apps using response. Currently it is storing as an table value inside array. Below is the screen shot.

 

Capture.JPGCapture1.JPGCapture2.JPGCapture3.JPGCapture4.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User II
Dual Super User II

Hi @Gopi2212 

 

The reason behind multiple tables inside the collections is the schema used for initializing variable. You have nested arrays and that is why it is saving like that (array inside array). To resolve this, you can use a ForAll loop on the canvas app to store each item in all the nested tables as individual item in the same table.
 
Expression: ClearCollect(Collection1,'PowerApp->Initializevariable,ParseJSON,Response'.Run());ForAll(Collection1.Value,Collect(Collection2,Value.Value))
 
Here, I have created two collections, one to get the response from Power Automate and second to store individual items. You can use Collection2 in the application. 
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
Dual Super User II
Dual Super User II

Hi @Gopi2212 

 

The reason behind multiple tables inside the collections is the schema used for initializing variable. You have nested arrays and that is why it is saving like that (array inside array). To resolve this, you can use a ForAll loop on the canvas app to store each item in all the nested tables as individual item in the same table.
 
Expression: ClearCollect(Collection1,'PowerApp->Initializevariable,ParseJSON,Response'.Run());ForAll(Collection1.Value,Collect(Collection2,Value.Value))
 
Here, I have created two collections, one to get the response from Power Automate and second to store individual items. You can use Collection2 in the application. 
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (39,500)