You cannot send email as the selected user. The selected user has not allowed this or you do not have sufficient privileges to do so. Contact your system administrator for assistance. Error in CRM 2013/2015

Originally posted on Nishant Rana's Weblog:
Was getting the below error in one of the custom workflow activity we were using for sending email. To fix the issue, Login to CRM with the user selected as From. Open Set Personal Options box And check the check box “Allow other Microsoft Dynamics CRM users to…

CRM 2013 – Business Process Flow – How to hide the ‘Create +’ button on the process bar

Originally posted on Adisys Technology Corner:
Dynamics CRM 2013 BPFs have many beneficial qualities.  They are available for both OOB and custom entities, can span across multiple entities. You can design business process flows that tie together the records for up to five different entities into a single process so that people using CRM can focus…

CRM 2013 – Workflows – Schedule workflows using ISV Provider North52

Originally posted on Adisys Technology Corner:
We’ve requirement to schedule workflows to run at certain times/dates. The workflows can be created in CRM and then run by a console tool or something by a Windows schedule service. We have used Windows Service or Scribe Insight to trigger workin some project and it works as expected. Today…

CRM 2015 – Understanding impersonation in plugins and knowing when to use it

Originally posted on Hosk's Dynamic Blog:
Plugins are usually set to run as the calling user but sometimes you need to run a plugin with System User privileges. Before I explain how, we should first look at the why and how you impersonate users inside a plugin I have been writing a bit about…

CRM 2013 – Workflow error AccessCheckEx

Originally posted on Hosk's Dynamic Blog:
I was investigating a bug on CRM 2013 , I got the exception below Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: f115e97d-8e19-e511-80ca-000c292122be, OwnerId: 89ed0bdd-7ecd-e411-80c7-000c292122be,  OwnerIdType: 9 and CallingUser: 2ed69167-0bcf-e411-80c7-000c292122be. ObjectTypeCode: 4200, objectBusinessUnitId: 5f964320-05f4-e411-80c9-000c292122be, AccessRights: WriteAccess Detail: <OrganizationServiceFault xmlns:i=”http://www.w3.org/2001/XMLSchema-instance&#8221; xmlns=”http://schemas.microsoft.com/xrm/2011/Contracts”&gt;   <ErrorCode>-2147220891</ErrorCode>…

Dynamics CRM 2015 – Interact with the Business Process Flow controls in the form

Originally posted on Adisys Technology Corner:
With Microsoft Dynamics CRM 2015, the Xrm.Page.data.process namespace provides events, methods, and objects to interact with the business process flow data in a form. This sample demonstrates how to switch to different stage using the new Xrm.Page.data.process methods. Followings are the API used in the sample code: getActiveProcess() – retrieve information…

CRM 2011 Parental Relationship Behaviour (the Reparent action) in Practise

Originally posted on WOODSWORKBLOG:
Parental relationships in Mscrm do a couple of things, in this post I’m going to focus on the reparent action. (As a side note, reparent isn’t exclusively used in the parental behaviour, but is where it is most commonly used). The MSDN gives a pretty decent description of the reparent action.…