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 / Get Row Count of table...
Power Automate
Unanswered

Get Row Count of table in web browser

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am logged onto a website that lists requests in a table format. I am trying to use Power Automate to get a count of the number of rows in this table so in turn, I can assign it to a variable and loop an exact number of times equal to that variable.

Is there such a way to Get that information without having to use Excel - for example, extracting data from webpage and storing the results into an Excel Spreadsheet, saving the excel document stored into a variable (ExcelInstance)?

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @Anonymous 

     

    You can directly get the web table into a Datatable variable of PAD and then loop through it.

    Use "Extract data from web page" to capture the html table which would return the results in a datatable

    Detect any table value as an UI element more than once and PAD will automatically convert it to a table.

    I have laid down some steps and instructions and a video link here.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi VJR, 

    Thank you for the reply. For the solution you provided, I need to do a Loop that is the exact number of times = to the rows in the table. What would be the variable used in this situation? When I did the Loop, I chose for Parameters - Start from:, End to: = %DataFromWebPage.RowsCount% and Increment by 1 where the variables produced = LoopIndex. With that said, does this mean my Loop is now comparable to Looping an exact number of times of the Row Count?

  • VJR Profile Picture
    7,635 on at

    Hi @Anonymous 

     

    You dont need to have a count variable.

    Pad will automatically loop till the last row of the Datatable.

    Make sure to use the "For each" action and pass the name of the datatable (in this case DataFromWebPage).

     

    Let me know if this answers your question.

     

    VJR_0-1648898543020.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi VJR,

     

    Thank you again, just seeing this now, will look into what you mentioned and let you know.

     

    Mahalo!

     

    Warm regards,

     

    Mena

  • sri08 Profile Picture
    20 on at

    Hi Mena

    Hope you are well. I have developed a workflow which keys the "tax number" in the search button of a url extract the necessary information and export back it to the excel. In the same URL i have another button to be clicked which it takes to next page and i need to scrape that information as well.

     

    The challenge here is that the few tax number has page with multiple rows. (please find attached step 4 marked in RED).  As of now my workflow extracts only the first row. Not sure how to go about it ?

     

    Please let me know ,if you can help with the flow,

    Thanks

    Sri

     

     

    step2.PNG
    step 4.PNG
    step3.PNG
  • sri08 Profile Picture
    20 on at

    Hi,

     

    Please find attached the flow,

     

    Thanks,

    Sri

    step5.PNG

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 266 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard