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 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
Okay.
Hopefully, you get suggestion from other experts.
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.
Hi brianmaric,
What if you insert this message in your email template?
Have you considered doing it that way?
Hi brianmaric,
Can you indicate that your question is related to d365?
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156