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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Loop through each row ...
Power Automate
Unanswered

Loop through each row in excel

(0) ShareShare
ReportReport
Posted on by 6

Hi -I have a data table loaded from excel storing info I use to input in SAP. 

I need a loop to go through each row to get each cell to populate a UI element created.

What is the best way to do this?

***I was creating a list for each column and was planning to loop through, but I don't think that will work. I need it to look through each row.  There is no "Get Rows" action available in Power Automate Desktop

Thanks in advance!

 @loop @excel @rows 

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    The For each loop creates a dynamic %CurrentItem% variable with named cells (if you turn on headers in the advanced option of your Read from Excel worksheet. This means that you can pull out the exact data that you need each round, by writing something like %CurrentItem['ID number']% in your Populate text field action.

  • tracyannkenney Profile Picture
    6 on at

    I do not see that option

    tracyannkenney_0-1618522233214.jpeg

     

  • Canjun Profile Picture
    12 on at

    Canjun_0-1618583620971.png

    Canjun_1-1618583782957.png

     

    Hi Henrik,

    I think I'm having a similar issue with the for each loop. Even The data table has 0 inside, the if condition wouldn't pop up any message

  • tracyannkenney Profile Picture
    6 on at

    I do not see that option. I do see "First line of range is column name".

    I still need help with the steps. I want each cell in the row input in SAP, run the transaction, then loop back and do the next row. Each row has 6 inputs. I only understand how to loop 1 input. 

    tracyannkenney_0-1618585911494.jpeg

     

     

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    You have the right option selected.

     

    Headers usually default to Column1, Column2, etc. when your start row is blank.

     

    Start row should be the header row.

     

    What does your Excel file look like?

  • tracyannkenney Profile Picture
    6 on at

    tracyannkenney_0-1618590789114.png

     

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    If you run the same Read action on that sheet, the column headers should show Posting Date From, Posting Date To, etc... which you can then use in the loop: %CurrentItem['Posting Date To']%

  • vaibhavtandon87 Profile Picture
    182 on at

    @trax , did this work? I am in a similar fix to loop through Excel data on a web form / SAP screen

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard