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 / Nested apply to each l...
Power Automate
Unanswered

Nested apply to each loop to avoid in power automate

(0) ShareShare
ReportReport
Posted on by 2
Hi ,
I have situation where I have to create around 6000 items in SharePoint list by manually trigger power automate flow. each items has some data based on 9 category, each day of month(30 or 31) and each hours (24 hours) of the day, that means 9x30x24 items to create. This flow will run each month manually.

With apply to each action in the power automate flow , I can create items in SP list however this will take for ever to run the flow that I would like to avoid and it may impact the system to be slow down.
Does anyone has other solution to avoid 3 nested apply to each loop to create such mass items ?
Thank you so much in advance!
Categories:
I have the same question (0)
  • Suggested answer
    developingteal Profile Picture
    392 on at
    You can probably pull conditionals outside of the loop. 
     
    I need a little more info to understand what is really going on, but if each block needs to be run anyways every time, it does not make a difference to change the time complexity if in the end the same amount of code needs to be run. 
     
    The question for you is, what does not need to be run in every loop? Pull that out and work from there.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard