I would like to know, what are the required privileges to send an e-mail from a Workflow?I have created two custom entities: Employee and Vacations.I have created a Role Employees and I added it to user Employee1.My user has the System Customizer role.I have created a workflow for the Vacations entity that starts every time a Vacation is created or the owner changes.The Workflow is like this:- If the owner of the Vacations is the employee's user, then: - (other steps that run ok)- send an e-mail from: employee's user, to: employee’s manager, owner: employee’s user.At this point the workflow stays in the Waiting status and shows the error:“Workflow paused due to error: Unhandled Exception: System.Web.Services.Protocols.SoapException: Server was unable to process request. Detail: <detail><error> <code>0x80048306</code> <description>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: 00000000-0000-0000-0000-000000000000, OwningUser: 00b9be11-8ef9-de11-981a-000f1ffad44b and CallingUser: 4f9c8900-adda-de11-b918-000f1ffad44b</description> <type>Platform</type> </error></detail> at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Microsoft.Crm.SdkTypeProxy.CrmService.Create(BusinessEntity entity) at Microsoft.Crm.Asynchronous.SdkTypeProxyCrmServiceWrapper.Create(BusinessEntity entity) at Microsoft.Crm.Workflow.Services.SendEmailActivityService.Execute(ActivityExecutionContext executionContext, SendEmailActivity sendActivity) at Microsoft.Crm.Workflow.Activities.SendEmailActivity.Execute(ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime) at System.Workflow.Runtime.Scheduler.Run()” When I create the vacation with my user and I’am the Employee, the workflow completes successfully and the mail is received.When the Vacation is created using Employee1, it shows the error described above.As Employee1, I can send e-mails from Vacations and they are received.I don’t know what else to do to make the send e-mail step work successfully with users that have the Employee role.
I will appreciate your help.
*This post is locked for comments
I have the same question (0)