cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gopi2212
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

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

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!

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,749)