web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : Qgsx74NgqAyWXHbA5oYiXI
Power Automate - Building Flows
Answered

Loop Through all Indexes

Like (0) ShareShare
ReportReport
Posted on 6 Dec 2019 16:55:41 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:

I have the same question (0)
  • abm abm Profile Picture
    32,585 Most Valuable Professional on 06 Dec 2019 at 17:12:18
    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

  • Community Power Platform Member Profile Picture
    on 06 Dec 2019 at 17:40:03
    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,585 Most Valuable Professional on 06 Dec 2019 at 17:42:05
    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/

  • Verified answer
    v-bacao-msft Profile Picture
    on 09 Dec 2019 at 05:54:15
    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,

  • Verified answer
    Community Power Platform Member Profile Picture
    on 13 Dec 2019 at 14:09:02
    Re: Loop Through all Indexes

    @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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard