Consider this situation: you are working with Microsoft Dynamics 365 and need to generate an email using an email template, including attaching the email attachments.
It was a little bit tricky to figure out how to do it, the reason of that being the UI itslef induces the developer in error.
See the image below where we will explain what to fill and how to fill the data.

Explaining the fields to fill:
Attachment(Attachments), this is the first trick field, the UI tells you that is a required field, than makes you thinking that you need to set a GUID if you read the content of the text box without any data. However, after trying and trying, i set the value to a null trough the Expression set data type, don´t try as Dynamic.
Entity, this is without any doubts the most weird one, when you try to fill, it only allows to options, ‘Email Template’ and ‘Email Activity’. In this case, we thought we needed the Email Activity because we were creating a Email Attachment to an Email. The error given by the history is the one below:
The entity with a name = ‘4200’ with namemapping = ‘Logical’ was not found in the MetadataCache….
After googling and trying, i found the solution to be set the field as email as per printscreen. Has to be set as selecting ‘Enter custom value’, and set as email.The other fields are more or less explanatory, as per screenshot.
Hope it helps.
No comments:
Post a Comment