web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error in Workflow: "you don't have enough privileges to access..."

(0) ShareShare
ReportReport
Posted on by 55
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)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans