Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Loop Through all Indexes

(0) ShareShare
ReportReport
Posted on by

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:

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Loop Through all Indexes

    @v-bacao-msft 

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

     

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Loop Through all Indexes

     

    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,

  • abm abm Profile Picture
    32,506 Most Valuable Professional on at
    Re: Loop Through all Indexes

    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/

  • Community Power Platform Member Profile Picture
    on at
    Re: Loop Through all Indexes

    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,506 Most Valuable Professional on at
    Re: Loop Through all Indexes

    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1