Hello Martin!
The below mentioned steps should help when we are creating dynamic HTML content.
I tried to generate a template document using Document Template element from Mendix, then in the same microflow I used StringFromFile java action from CommunityCommons and then added that string into the email template and it worked. Hope this helps!
Hi Martin,
You can add HTML by 2 ways.
First, you can create a string attribute and store the HTML code in attribute and you can call that attribute in the email template as Praharaj mentioned.
Second, You can create a HTML Template in any IDE. And replace dynamic values with the Placeholders. Paste your HTML code in the HTML Tab in the email template configuration.
Then go to the Plain Text Tab. There you will find one button called ‘Copy from HTML Text’, click on that. It will give you the HTML text in the plain text format. The check the “Use the plain text body”. It will give plain text in your email.
In this way you can create HTML or custom email template for Emails.
If you need any help let me know.
Thank you