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

Notifications

Announcements

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,135 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,135 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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 836 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 452 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 349 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans