Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Loop through HTML Document

(0) ShareShare
ReportReport
Posted on by

I need to loop through the SysEmailMessageSystem Table and add a message at the end of each email message.  I can use the string functions to look for '</body>' and then insert a  string.

But it seems that it would be better if I could loop through the HTML document.  Is there a good way to do that?

Thanks

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
  • Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: Loop through HTML Document

    Okay.

    Hopefully, you get suggestion from other experts.

  • brianmaric Profile Picture
    brianmaric on at
    RE: Loop through HTML Document

    I need this message inserted only in the QA and Test Environment.

    So I need a script to modify the templates just for non-prod environments.

    I think I can do this with string functions...just wondered if anyone know a way to read the HTML via code.

  • Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: Loop through HTML Document

    Hi brianmaric,

    What if you insert this message in your email template?

    Have you considered doing it that way?

  • huijij Profile Picture
    huijij 19,811 on at
    RE: Loop through HTML Document

    Hi brianmaric,

    Can you indicate that your question is related to d365?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans