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 Automate / Creating number of loo...
Power Automate
Unanswered

Creating number of loops from number of items in the list

(0) ShareShare
ReportReport
Posted on by 79

Hi all,

I have a situation where I have "Create new list" function and added item to the list. I would want to create loops , the number of loops depends on the number of items in the list, is there a way to change the loop number to use the number of items in the list, as the number of items varies from projects to project, I am wondering whether there is a way to set the number of loops following the items in the list without me having to manually change the loop number from project to project?

Thanks

JackyGrealish_0-1659533380191.png

 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    The number of items stored in %List% is %List.Count%.

     

    However, you refer to a specific index item start from 0 to %List.Count - 1%.

     

    So, I would start a Loop starting at 0 to %List.Count - 1%, increment of 1.  Now, %LoopIndex% will always be your List item, and you can always refer to your current list item as %List[LoopIndex]%

     

    Best of luck!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 330

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 123

Last 30 days Overall leaderboard