Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 154803

Forum Post: Launch Enhanced email via code

$
0
0
is there anyway I can launch the new multi-task enhanced email using Xrm.Navigation.openForm or another method. I I currently launch emails from an onchange event on a case field and pre-populate the template via formparameters but it would be good to use the multi-task capabilities of the enhanced email. Current sample code. function (executionContext){ formContext = executionContext.getFormContext(); var entityFormOptions = {}; entityFormOptions["entityName"] = "email"; // Guid of Email Template formParameters["templateid"] = "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"; formParameters["templateidname"] = "XXXXXXX"; // Open the form. Xrm.Navigation.openForm(entityFormOptions, formParameters).then( function (success) { console.log(success); }, function (error) { console.log(error); }); function (executionContext){ formContext = executionContext.getFormContext(); var entityFormOptions = {}; entityFormOptions["entityName"] = "email"; // Guid of Email Template formParameters["templateid"] = "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"; formParameters["templateidname"] = "XXXXXXX"; // Open the form. Xrm.Navigation.openForm(entityFormOptions, formParameters).then( function (success) { console.log(success); }, function (error) { console.log(error); });

Viewing all articles
Browse latest Browse all 154803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>