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 / Loop Through all Indexes
Power Automate
Answered

Loop Through all Indexes

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hello Team,

I'm creating a flow to send emails for different people. In the "Get a Row", I chose "Key Column" is Index and  "Key Value" is 19. However, this works only for index 19th. I have 25+ people (with indexes) and I want to loop through all indexes to send email to all, not specific index 19. So, I use "Initialize variable" to create a variable to store indexes. But I don't know how it works?

flow1.png

What I have so far is:

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Anonymous 

     

    Instead of using Get a row try using List rows. This will return everything. Add a foreach loop to iterate the results.

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I changed to List Rows and "Apply to Each" to loop through the value.

    So, how does it know that I want to loop through the indexes? and we don't need the "Initialize Variable" anymore?flow3.png

    My goal is I have this data in Excel onlne, I want to check "StatusDescription" == "In Progress", so I email to resourceEmailAddress. I want to look through the index to check all of them. Thank you.

     

    s: flow4.png

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Anonymous 

     

    Thanks for your reply.

     

    Please see my blog. This might help.

    https://mydevexperience.wordpress.com/2019/09/25/microsoft-flow-excel-list-rows-present-in-a-table/

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    Please try to refer the following methods to configure Flow.

    If you want to send a specific email message to each user, then you can refer to the following methods to achieve your needs.

    95.PNG

    If you want to send only one email to all users, you can refer to this method. Use array variables to store all email addresses.

    96.PNG97.PNG

    Hope it helps.

     

    Best Regards,

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-bacao-msft 

    Thanks so much for your answer. It helps me a lot.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard