Check out the latest features available in Dynamics 365 for Customer Engagement, including LinkedIn Connect, Voice of the Customer and Universal Resource Scheduling.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
I have one custom entity with password field, this field contains the password encryption value.I need to send the password decryption value using dynamics crm email template.I need to know how to pass value from plugin to Email Template body.
There are few ways to get the email generated from a template to have the decryption value populated.
01. You could add a field to the entity that the email template is based on and set the value to the decryption field (better not to enable auditing on this field) in the plugin just before you generate the email from the template. Once you created the email from the template, clear the decryption field value from the record.
02. You could have your own unique place holder in the template, instantiate the template in the plugin, find and replace your unique placeholder with the decryption value
how to replace emailtemplate placeholder in plugin.
In your code you could instantiate the template and get the email generated using InstantiateTemplateRequest
InstantiateTemplateRequest instantiateTemplateRequest = new InstantiateTemplateRequest()
ObjectId = userId
ObjectType = "systemuser"
TemplateId = template.Id
InstantiateTemplateResponse instantiateTemplateResponse = this.OrganizationService.Execute(instantiateTemplateRequest) as InstantiateTemplateResponse;
Entity email = instantiateTemplateResponse.EntityCollection.Entities;
the email generated here is not yet saved to the system, so you can get the email body and find and replace your unique place holder with the decryption value.
Please follow the link below to see how you could work with generated email body.
ok i take the response of the email and how can i change the placeholder of my email template
my placeholder name is [!decrypt]
You could try the following
email["description"] = email["description"].Replace("[!decrypt]", "YOUR VALUE");
Thank You it is working..
Business Applications communities