Hello
I need to add new field in Email place holder which is not available in Out of the box placeholders.
The place holder i want to add is ProductVariantName , which is not available as per below link.
Create email templates for transactional events - Commerce | Dynamics 365 | Microsoft Learn .
Where i can find this code to put new place holder?
Thank you in advance!
Hi,
That would depend on where the placeholders are going to be used because there is no "central place" for adding more placeholders. If you find the references for the SysEmailTable in Visual Studio, you will see many examples in the standard application of places where you could add more placeholders to the standard mappings. See screensot below.
I have added more placeholders to the standard placeholders for workflow email notifcations, see the sendMail method in the EventNotificationWorkflow class as an example of where this can be done.
André Arnaud de Cal...
292,074
Super User 2025 Season 1
Martin Dráb
230,900
Most Valuable Professional
nmaenpaa
101,156