Notifications
Announcements
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 836 Super User 2025 Season 2
André Arnaud de Cal... 452 Super User 2025 Season 2
Martin Dráb 349 Most Valuable Professional