Issue :
Recently I was doing a Workflow in SharePoint office 365 site. The workflow was so simple. Whne a Item is created it Automatically read some values form list and send mail to a Group. It was working fine for SharePoint internal Users.
But when External use fill in the workflow not started automatically instead giving HTTP 401 Error.
Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"error_description":"The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults
Then i tried to do the Steps by App Step. I put all the Action under it. Though the Workflow kick stated but it did not found any item giving Item not found error.
Cause :
The cause i found it the list i have created is customized to View/Edit items which Created by the User only (i.e. by out of box feature ). That's why the App Step could not the find the item. So we need to give the Permission to the Workflow App.
Solution :
I gave permission to the Workflow App by following article. Create a workflow with elevated permissions by using the SharePoint 2013 Workflow platform
Note - when ever we add any External user we should at lest the user get sync by User Profile service,
Recently I was doing a Workflow in SharePoint office 365 site. The workflow was so simple. Whne a Item is created it Automatically read some values form list and send mail to a Group. It was working fine for SharePoint internal Users.
But when External use fill in the workflow not started automatically instead giving HTTP 401 Error.
Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"error_description":"The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults
Then i tried to do the Steps by App Step. I put all the Action under it. Though the Workflow kick stated but it did not found any item giving Item not found error.
Cause :
The cause i found it the list i have created is customized to View/Edit items which Created by the User only (i.e. by out of box feature ). That's why the App Step could not the find the item. So we need to give the Permission to the Workflow App.
Solution :
I gave permission to the Workflow App by following article. Create a workflow with elevated permissions by using the SharePoint 2013 Workflow platform
Note - when ever we add any External user we should at lest the user get sync by User Profile service,
No comments:
Post a Comment