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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / What is best way to co...
Power Automate
Answered

What is best way to combine data from custom objects?

(0) ShareShare
ReportReport
Posted on by 431

In my loop shown below I am getting data from Airtable. A loop is necessary because each API call returns a maximum of 100 rows of data. In each iteration I save the result into a custom object (ResponseAsCustomObject). I want to get all of the data into one data structure for further processing and data extraction after the loop. What is the best way to do that.

Steve48_0-1697999099862.png

 

 

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Steve48 

     

    could you show me how each custom object response looks like ?

  • Steve48 Profile Picture
    431 on at

    Hi @Nived_Nambiar 

    Hope this helps

     

    Steve48_0-1698003488155.png

    Steve48_1-1698003588859.png

     

     

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Create a separate list for storing these. Let's say, call it %Records%. It can be empty at first (simply do a Create new list).

    Then use Merge lists on it and merge %Records% with %ResponseAsCustomObject['Records']% in each iteration.

     

    When you're done with all your loops, if you still want your records to be in a custom object for whatever reason, you can create a new one and add %Records% as a parameter to it. But if you're fine with just having it as a list, you'll already be there by just creating it and merging it.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Pavel_NaNoi Profile Picture
    1,074 on at

    One quite easy way is to create a new list using the "Create new list" action at the very beginning (outside the loop), and then simply add each iteration of your offset to it in the loop via the "Add item to list" action, it will basically append every response into the list for each iteration until its done.

     

    The most efficient way would be to somehow get the entire data in one go via the invoke, but obviously that depends on the API so eh.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Using Add item to list with lists will result in a list of lists, which is not efficient at all. Using Merge lists would work better.

  • Pavel_NaNoi Profile Picture
    1,074 on at

    Ah yes that's right, I forgot that its lists and not one item at a time which I'm used to. Thanks for the correction.

  • Steve48 Profile Picture
    431 on at

    Hi @Agnius 

    That was very helpful. It worked great. Thank you.

    Steve

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard