web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / create 2 collections b...
Power Apps
Answered

create 2 collections based on HTTP response from flow containing 2 different array/object sets

(1) ShareShare
ReportReport
Posted on by 870 Super User 2026 Season 1
Hello -
 
I have figured out how to get two different array/object sets into the output of an HTTP response action in power automate with the applicable and different JSON schemas. The action output is as expected.
 
Using a canvas button OnSelect, ClearCollect and running the flow I am able to populate the StorePrices collection, see function pictured below. This works like a charm.
 
Is there a way to apply the ZonePrices part of the flow HTTP response payload to a different collection without adding another canvas app button with another flow?
 
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    BhaskarDhone Profile Picture
    1,394 Super User 2026 Season 1 on at
    You can first get the complete power automate response into a variable and then use variable to fill collection.
    Something like below
     
    Set(varPowerAutomateOutput,GetCurrentpricebySKUresponse.Run(TextInput1.Text));
    ClearCollect(colStorePrices,varPowerAutomateOutput.StorePrices);
    ClearCollect(colZonePrices,varPowerAutomateOutput.ZonePrices)
  • Cgangweg01 Profile Picture
    870 Super User 2026 Season 1 on at
    Thank you so much BhaskasDhone for the reply.
     
    I was able to set the variable and pull in the first collection for StorePrices. That worked when I ran the app.
    But when I construct the second collection it does not recognize the property ZonePrices. See first screen shot.
     
    When I try to refresh the flow connection I get an error, see second screen shot. I have a hunch that the flow Body of the HTTP response is not in a good format. I have the properties StorePrices and ZonePrices separated by a comma which does not give an error in power automate so I thought it was good. See third screen shot.
     
    Any suggestions at this point?
     
     
     
     
  • Cgangweg01 Profile Picture
    870 Super User 2026 Season 1 on at
    Hello Bhaskar,
     
    I redid the schema in the Response action and readded the flow to the app and your solution worked! Each of the arrays is in a different collection which is exactly what I wanted. Thank you!
     
    My next problem ... for some reason the collections are no longer showing as data sets available to any new table I add.  I think it might be a bug with power apps but I'm not sure.  Any idea?
  • Suggested answer
    Ravindra Jadhav Profile Picture
    342 Moderator on at
    Hii,
    You Are Using Premium Connector You can Directly Pass the combined table in Power Apps
     
    Please Closed the Question, Mark it Solved 
     
    If my answer helped resolve your issue, please consider marking it as solved to assist others facing the same problem. Additionally, giving it a like would be greatly appreciated and motivates us to keep helping
     
    Thank You
    Ravindra Jadhav

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard