Hi Guys,
I am having problem populating data fields in email template when workflow runs. I tested it also running the workflow on demand.
"Hello" is the only value appeared in the email.
I cant find similar issue over the internet. You're input is high appreciated. Thanks in advance.
Email Template
Workflow
Properties
Code
*This post is locked for comments
The issue is now fixed. Thank you for this blog.
www.daisychubb.com/.../creating-an-email-with-template-in-ms-dynamics-crm-2016.
Thank you everyone for giving time answering my question. Cheers!
Our goal is to have the description filled up with the email template body that has data fields in it.
That is why description of the email is updated with the email template body in the code.
I already run the workflow on demand. Email is created as expected.
Note: This set up is working before. Then suddenly it is broken. Data fields are not populated with values. There were no updates in the code.
Hi Euclides,
The template is a contact template.
This question may sound a bit unessary, can you please check the email in question has 'Regarding' field set to a contact record before above workflow step triggerd?
Regards,
Abby
Hi,
I understand your process but there are couple of things which can cause this issue. In your workflow in first step you are creating an email and I trust you are creating email using the template itself. Here CRM creates email using "InstantiateEmailRequest" which replaces all dynamics value. If you are doing this then why you are updating the email's description field in workflow. As a debug process can you please remove your custom step and run the workflow to check the email is getting created correctly or not.
It is part of the process to setup first the email before sending. That code used to be working. I did not change any in the code. But suddenly we encountered this issue.
Hi,
by the way you can use below method to send email with template, any reasons you want to send it with code?
Hi,
it seems something is wrong with your code. you are using different method to send the email with template. Refer below code on how to send email with template.
I created a new email template and workflow in IE but data fields are still not populated.
But when I manually inserted the email template in the email, data fields are populated.
I cant trace what seem the problem is.
Hi Euclides,
to check this , i would first ask you try to simply go to the entity for whichh you have created this record and add an email from there and insert this template and see if you get the values.
if you dont see values - try to create a fresh template or re-create the content as Alex suggested above.
Hi,
I will try to remove it and add again . I recommend you to use IE to add the dynamics value.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156