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
yashag2255
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
yashag2255
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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (25,395)