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 / Way to extract 100% ou...
Power Automate
Answered

Way to extract 100% output of a iterations from a Do until

(0) ShareShare
ReportReport
Posted on by 14
I have a flow that uses the actions take and skip inside a Do Until to process an array. This is because the API that I am sending the info to does not allow me to send 100% of the array in one call (hence the need to use skip and take to send the Array to the API in blocks).
 
The issue is that I would like to do a completeness test that will allow me to compare the original Array with all the output from my Do until in order to make sure I actually sent to the API 100% of the original Array. To do this, I need to somehow extract the output of all the Do Until's iterations. 
 
Let's assume I have the following array:
Coffee654_0-1653246835548.png

 

If I have a Do Until that uses take and skip and process two words at a time, I will have three iterations of the Do Until (a,b + c,d, + e,f). Right now, what I have tried is using an append to string variable inside a Do Until that will grab each iteration output. But when I use the appended variable in other actions outside the Do Until, I only get the first iteration or in this case, if we use the pic above as an example: I only extract this:

 

Coffee654_1-1653247038874.png

When ideally my append to string variable inside the Do Until will be able to get me this after appending of iteration of the Do until:

 

Coffee654_2-1653247076833.png

These are the actual actions in my flow. The ComposeDoUntil uses the take(skip( formula to extract the corresponding block of info from the array and my append to string is supposed to take the compose output and append each iteration's output:

Coffee654_3-1653247203931.png

 

 
What actions do I need to create in order to extract 100% of all the iterations of my Do Until? Any help will be appreciated. Thanks!
Categories:
I have the same question (0)
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Coffee654 

     

    Based on the solution I provided here Make HTTP calls inside loop that filters array? - Power Platform Community (microsoft.com) you can further extend that to include a variable for an array above the apply to each.  Create a copy of the array in a compose and then update the original array with a union of the compose and the compose batch (using the skip/take).  You can then output the array outside of the apply to each to double check everything is there as required.

     

    DamoBird365_0-1653251598010.png

     

    Set variable is:

    union(outputs('ComposeCopyVariable'),outputs('ComposeBatchesBySize'))

     

    Cheers
    Damien

    Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts. Thanks

  • Coffee654 Profile Picture
    14 on at

    Awesome! Thanks, @DamoBird365. I will be trying it this this week and as soon as I’m able to implement it I will let you know and accept it as solution.

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard