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 / How to loop through da...
Power Automate
Unanswered

How to loop through data in a column?

(0) ShareShare
ReportReport
Posted on by 45

I have a list of products stored in a table. I need the power automate desktop RPA to loop through the column names and get data into this table from another table. How can we achieve this?
Tried a for each loop, but it does not loop the data.

 

ScrewBoltsnutsSpannerBushes
     
     
I have the same question (1)
  • UshaJyothiKasibhotla Profile Picture
    203 Moderator on at

    Read the data and store into va variable for example exceldata 

    If the column names are static with their positions then you can check with 

    Exceldata[0][0]

    Exceldata[0][1]

     

    Hope this helps 

    Usha 

     

  • UshaJyothiKasibhotla Profile Picture
    203 Moderator on at

    Id you loop through the data table obviously you can loop through the rows and columns

     

    For further clarification please provide some more info about your requirement

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If the table headers are are actually stored as headers, you can access them as %DataTable.Columns% (will return the names of the columns in a list variable) or %DataTable.ColumnHeadersRow% (will return the names of the columns in a datarow variable). You can then iterate through them using a loop or a For each.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard