Cant send Mails via Workflow CRM 2015 RRS feed

  • Question

  • Hi,

    I have two workflows for Cases ... in booth I'm trying to send Mails. In the on it works fine. In the other I'm getting the following Error:
    [Recipient is Contact or Responsible Contact]

    Plugin Trace:

    [Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
    [SendEmailStep3: Send Mail To Responsible]

    Error Message:

    Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.Workflow.Services.SendEmailActivityService.<>c__DisplayClass1.<SendEmailInternal>b__0(IOrganizationService sdkService)
       at Microsoft.Crm.Workflow.Services.ActivityServiceBase.ExecuteInTransactedContext(ActivityDelegate activityDelegate)
       at Microsoft.Crm.Workflow.Services.SendEmailActivityService.ExecuteInternal(ActivityContext executionContext, SendEmail sendEmail)
       at Microsoft.Crm.Workflow.Services.SendEmailActivityService.Execute(ActivityContext executionContext, SendEmail sendEmail)
       at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

    Any ideas what I can do?

    Thanks for your help

    EDIT: the first workflow is from the 2013 Version .. the second not working prozess is buildet in 2015

    • Edited by Mcgum Friday, April 10, 2015 12:44 PM add informations
    Friday, April 10, 2015 12:30 PM

All replies

  • Hello Mcgum,

    Though I am not a techie :(, I guess this is due to some privilege issue. Check if the current user is enabled to send emails on behalf of other user.

    I hope it should work.

    Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/

    Friday, April 10, 2015 3:09 PM
  • Thanks for your anwser ... but all security settings are correct :(

    Any other suggestions? Current update (0.1) has not fixed the issue :(

    Friday, April 17, 2015 1:13 PM