Insert dynamic values to Custom Entities Email Templates

Inserting dynamic values in the email template for OOB entities is very easy but if it comes to create an email template for a custom entity with dynamic is not straight forward. In this blog, I will show you how to create an email template for a custom entity.

Step – 1:
First, create an Email Template in your solution > Email templates and Click on the New button then Select Template Type Global and click on OK.



Your template will be like this

Step – 2:
Below is the formate and examples for inserting dynamic values from Custom entities:
Field Type Formate Example
Single Line of Text {!EntityLogicalName:FieldLogicalName;} {!sch_request:sch_name;} 
Multiline of Text {!EntityLogicalName:FieldLogicalName;} {!sch_request:sch_description;}
Lookup {!EntityLogicalName:FieldLogicalName/@name;} {!sch_request:sch_contact/@name;}
Date {!EntityLogicalName:FieldLogicalName/@date;} {!sch_request:createdon/@date;} 
Time {!EntityLogicalName:FieldLogicalName/@time;} {!sch_request:createdon/@time;}
Option Set {!EntityLogicalName:FieldLogicalName/@name;} {!sch_request:sch_paymentmethod/@name;}
Two Options {!EntityLogicalName:FieldLogicalName/@name;} {!sch_request:sch_notifications/@name;} 
Multi Select Option Set {!EntityLogicalName:FieldLogicalName/@name;} {!sch_request:sch_areaofinterest/@name;}
Currency {!EntityLogicalName:FieldLogicalName;} {!sch_request:sch_amount}
Decimal Number {!EntityLogicalName:FieldLogicalName;} {!sch_request:sch_enactedamount;}
Floating Number {!EntityLogicalName:FieldLogicalName;} {!sch_request:sch_estimatedamount;}


Comments

Popular posts from this blog

SharePoint Document Grid on CRM Dynamics Unified UI