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

Community site session details

Session Id :
Power Automate - AI Builder
Unanswered

how extract HTML tables from body email

(0) ShareShare
ReportReport
Posted on by 25
Hello 
in my email there are several HTML tables, so in the HTML code, there are several <table> tags, in total there are 4 tables, as you can see in the attached html code.
 
is there a way on power automate to indicate which table I should consider in order to extract the data? for example I need to extract only the table marcked in the green box.
 
 
regards
marco 
 
I have the same question (0)
  • Chriddle Profile Picture
    8,087 Super User 2025 Season 2 on at
    how extract HTML tables from body email
     Make the HTML compatible to XML with a few string replacements. Then use xpath
     
    Compose-HTML
    Your HTML text.
     
    Compose-XML
     (The forum software does not accept this code, therefore a screenshot)
     
    Select
    From:
    skip(
            xpath(
                   outputs('Compose-XML'),
                   '//table[2]/tbody/tr'
            ),
            2
    )

    Map Item:
    json(item()).tr.td[0]?['#text']

    Map Activity:
    json(item()).tr.td[1]?['#text']

    Map Mold Serial Number:
    json(item()).tr.td[2]?['#text']

    Add more table columns using this pattern
     
    Result
     
  • NathanAlvares24 Profile Picture
    1,683 Moderator on at
    how extract HTML tables from body email
     
    Is the data you want always in the "fund request line" section?
     
    Regards,
    Nathan Alvares

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 798 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 469 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 333

Last 30 days Overall leaderboard