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 / How to loop all tables...
Power Automate
Answered

How to loop all tables in GetTables function?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have the following Flow:

 

flow.jpg

I have a "GetTables" function that reads from a specific Excel file. I want to loop through each table and then read all rows from each table in order to make some operations.

 

The "Apply to each" gets the value from "GetTables" function.

 

How can I achieve this?

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    If you want to loop through each table and then read all rows from each table in order to make some operations.

     

    Please add a "Get rows"action inside the "Apply to each" , and refer to screenshot below to create the flow:

    Capture.PNG

     

    Best regards,

    Alice

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello Alice. Thank you for your answer.

     

    With this solution, I can't get the Filter result in a next step. See:

     

    flow.jpg

     

    How can I get in my "Select 2" the output value of the loop?

     

    Thanks!

  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    If you want to use the output value from the Filter Array in the loop, you could move the "Select 2" under the "Filter Array" inside the loop.

     

    Best regards,

    Alice

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Alice

    It's not working like that:

    flow.jpg

    As you can see, I can't see the Output variable...

    What I'm doing wrong?

     

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

    Hi @Anonymous,

     

    Please move the "Select" and the following actions to under the "Filter Array" inside the loop.

     Capture.PNG

     

     

    Best regards,

    Alice

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

    I ended up doing the complete operations inside the loop, as the Outputs where not visible outside the loop, But this is useful as its is.

     

    Alice, thank you for your help. It has been really helpful.

     

    By the other hand, I'm trying to compare to a null string, with no luck. I put this code inside a Filter:

     

    @not(empty(triggerBody()?['CADUCA']))

    In order to filter all not null values in 'CADUCA' column. But with no luck. It doesn't filter anything at all. Any idea?

    Thank you!

     

  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    If your first problem has been solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

     

    And for your question to filter all not null values in 'CADUCA' column, please create a new forum for the issue with the screenshot of your flow.

     

    Best regards,

    Alice

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard