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 / Create HTML Table Numb...
Power Automate
Answered

Create HTML Table Numbering/Index

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear all,

I'm still new in Power Automate, need your help on my problem.

I'm using Create HTML Table action in my flow and want to add numbering/index for each row. My flow as below.

Capture.PNG 

Table I wish to have in my email content:

 

Capture2.PNG

 

Any ideas to add the expression for the "No" column which represents the number of rows of the table?

Thank you in advance.

Categories:
  • jinivthakkar Profile Picture
    4,187 on at

    @Anonymous I tried this at my end but nothing works 😞 so I don't think that can be done.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Buddy_A Profile Picture
    11 on at

    @Anonymous Hello. Have you occasionally found a solution for this? That would be great to know, if there is one... 

  • Verified answer
    RTW Profile Picture
    180 on at



    You'll have to come at this a bit differently. First, at the start of the flow, you need to initialize an Integer variable (vale 1) and an array variable (blank)

    After your Get Items action, create an "Apply To Each." Inside that you have 2 actions. Append to Array, in which you bring in the columns you want in your table, as well as the index. Then, you increment the Integer variable by 1. Make sure you turn on Concurrency Control and limit to 1, otherwise things might get a little funky.

    Here's an example of the flow, as well as the output at the end.
    Example flow of adding an index to an HTML tableExample flow of adding an index to an HTML tableExample outputExample output

  • RTW Profile Picture
    180 on at

    Please see my response above

  • RTW Profile Picture
    180 on at

    Please see my reply

  • Buddy_A Profile Picture
    11 on at

    Perfectly done! That is a nice "out-of-the-box" solution! Thanks for that hint!

    I would mark it as "solved", if I could. 😀

  • TuanNguyen92 Profile Picture
    36 on at

    Its worked for me also, thank you alot !

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard