First published on TECHNET on Oct 18, 2016
This post is a contribution from Manish Joshi, an engineer with the SharePoint Developer Support team
There seems to be a check in SharePoint when starting a workflow using CSOM if SharePoint 2013 workflow is started using the App-Only context – if yes, throw Access Denied exception and log this exception.
So there is no other way than to start a SharePoint 2013 workflow in CSOM except using the App+User context
Following code illustrates using an app only access token to create a ClientContext and start the SharePoint 2013 workflow in CSOM.
The above code will throw AccessDenied exception.
To get this to work the code needs to be changed as below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.