When sending an outgoing email from D365 CE or crm, after user press send button to send an email, we have an onSend function that we use to append additional content to the email body before email is sent to recipient.
In web client, this used to work
If your onSend() function is a form ribbon, add the primaryControl CRM Parameter as mentioned in the blog post below and change your function to
function onSend(primaryControl) {
var formContext = primaryControl;
// The rest of the script
.................................
.................................
Hi Mbah,
Are you checking this to enable the executioncontext to be passed ?
Also, you need to declare the function with the parameter like:
function ola(executionContext)
{
//do stuff
}
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... 290,900 Super User 2024 Season 2
Martin Dráb 229,275 Most Valuable Professional
nmaenpaa 101,156