Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Parse HTML TABLE Header and Body

(1) ShareShare
ReportReport
Posted on by 5

Hi Im new to AL programming, I have a string in HTML table format (with table header and body) and I would like to iterate it over the table body and extract data from every row cell.

Any help on it will be appreciated, thank you

for example, I have this html :

<table>
    <thead>
        <tr>
            <th>Age</th>
            <th>Name</th>
            <th>Gender</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>24</td>
            <td>abc</td>
            <td>F</td>
        </tr>
    </tbody>
</table>
  • Qasim780 Profile Picture
    5 on at
    RE: Parse HTML TABLE Header and Body

    thanks yzhums   DAnny3211 

  • Suggested answer
    YUN ZHU Profile Picture
    85,845 Super User 2025 Season 1 on at
    RE: Parse HTML TABLE Header and Body

    Hi, You could try the following, but I don't see any practical value for it.

    Dynamics 365 Business Central: Using WebPageViewer Add-in (“Microsoft.Dynamics.Nav.Client.WebPageViewer”)

    https://yzhums.com/16061/

    pastedimage1670285439403v1.png

    Or, you can refer to Erik's video below

    https://www.youtube.com/watch?v=8TurwMAq54c

    pastedimage1670285581214v2.png

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    DAnny3211 Profile Picture
    9,280 Moderator on at
    RE: Parse HTML TABLE Header and Body

    Hi

    there is nothing similar that does this in BC

    you should study a solution in A/L code, but in my opinion it is very very inconvenient

    it would be better to have an xml or a json

    DAniele

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans