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 / HTML Table row Count |...
Power Automate
Answered

HTML Table row Count | JavaScript Code running in Console, But not in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 90

I want to count the row of an HTML table on the webpage. Then My target is- I will loop each row of that table in the next steps. 

 

Please see below the Edge console snapshot, This is giving me the output. Like- TableBody Row is 2.

mohashinBhyian_0-1684433532655.png

 

My PAD steps are as below. The output variable after running JaveScript will be shown in messageBox. But this is not giving any results. 

mohashinBhyian_0-1684434530220.png

 

JavaScript to count HTML table RowJavaScript to count HTML table Row

@abm Hello, I am your YouTube fan. Need your kind help.

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @mohashinBhyian 

     

    Is your code correct, i could see the highlighted line is incomplete 

    Nived_Nambiar_0-1684462702710.png

     

     

  • mohashinBhyian Profile Picture
    90 on at

    @Nived_Nambiar Basically Code is written full. Due to window size, full code is not visible. If you see the flow step(Run JaveScript function on web page), then you can see full step. 

    mohashinBhyian_0-1684464042951.png

     

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @mohashinBhyian 

     

    Have you checked what is the value of result variable after running flow ?

    Nived_Nambiar_0-1684465194408.png

     

     

  • mohashinBhyian Profile Picture
    90 on at

    oooh my god... How silly I am!!! This is the effect of doing work very late at night. I mess up with myself. I mistook to call the variable. My main code was correct. Do you know if is there any limitation to getting the output of running JS is power automate desktop? 

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 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard