Announcements
No record found.
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
Hi brianmaric,
Can you indicate that your question is related to d365?
What if you insert this message in your email template?
Have you considered doing it that way?
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.
Okay.
Hopefully, you get suggestion from other experts.
Hi Brian, check these threads if it helps you
community.dynamics.com/.../how-to-manipulate-html-in-email-templates-via-x
community.dynamics.com/.../how-can-i-read-html-element-via-x
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 509 Super User 2026 Season 1
Giorgio Bonacorsi 375
Adis 268 Super User 2026 Season 1