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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Hi brianmaric,

    Can you indicate that your question is related to d365?

  • Komi Siabi Profile Picture
    13,190 Most Valuable Professional on at

    Hi brianmaric,

    What if you insert this message in your email template?

    Have you considered doing it that way?

  • brianmaric Profile Picture
    on at

    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
    13,190 Most Valuable Professional on at

    Okay.

    Hopefully, you get suggestion from other experts.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 509 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 375

#3
Adis Profile Picture

Adis 268 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans