Notifications
Announcements
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:
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:
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:
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.
Set variable is:
union(outputs('ComposeCopyVariable'),outputs('ComposeBatchesBySize'))
CheersDamienPlease take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts. Thanks
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 525 Super User 2025 Season 2
Tomac 324 Moderator
abm abm 232 Most Valuable Professional