
Announcements
I am working on a Purchase Order Approval Workflow in Microsoft Dynamics 365 Finance and Operations. I am trying to customize the email template (Email ID), but I have encountered two main challenges regarding the email body:
Specific Placeholders: In the Email ID (HTML) template, I can only use standard placeholders like %message%, %subject%, and %for%. I want to use more specific fields like Vendor Account (%PurchTable.VendAccount%) directly in the HTML body of the email template, but they are not being rendered and appear as plain text in the received emails.
Dynamic Line Items: My purchase orders usually contain multiple lines. I need to display these lines (Item Name, Quantity, Unit, and Price) in a dynamic HTML table within the email notification. Since the standard email editor doesn't seem to support loops (foreach) or dynamic tables, what is the best practice to achieve this within the workflow framework?
Is there a standard way to make these specific placeholders work in the Email ID template, or is there a recommended method to inject a dynamic table into the %message% tag?
Best Regards
Kind regards, Adis
If this helped, please mark it as "Verified" for others facing the same issue
Keep in mind that it is possible to mark more than one answer as verified