Answered by:
Workflow not being triggered by incoming email

Question
-
Hello,
I have a SharePoint Designer workflow that triggers when a new item is created. The library the workflow is attached to specifically receives incoming emails. The workflow runs perfectly in our SharePoint 2010 environment, however, it does not run on incoming emails received in our SharePoint 2013 environment. If I upload a document into the library, it will run. It also runs if I manually start it. It just won't run automatically when it receives an incoming email. Is this a bug or is this to be expected with SharePoint 2013? Thanks.
Friday, March 13, 2015 3:38 PM
Answers
-
Hi Gmchusyr,
I recommend to check if workflow trigger on email is enabled in SharePoint with the PowerShell command below:
$spWebService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $spWebService.DeclarativeWorkflowAutoStartOnEmailEnabled
If it is False, please enable it with the PowerShell command below and then check the results:
$spWebService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $spWebService.DeclarativeWorkflowAutoStartOnEmailEnabled = $true $spWebService.Update()
Here is a similar thread for your reference:
More references:
http://adayinsharepointv3.blogspot.jp/2012/12/kick-off-workflow-in-sharepoint-library.html
For SharePoint 2013 workflows, the workflows can be triggered by incoming emails, however the workflows will fail after starting.
In this case, we need to activate the Workflows can use app permissions in Manage site features in site settings.
http://dhasalprashantsharepoint.blogspot.jp/2013/07/sharepoint-2013-workflow-suspends-on-e.html
Best regards.
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Edited by Victoria Xia Monday, March 16, 2015 6:23 AM
- Proposed as answer by Indul Hassan Monday, March 16, 2015 6:34 AM
- Marked as answer by gmchusyr Monday, March 16, 2015 11:17 AM
Monday, March 16, 2015 5:39 AM
All replies
-
Hi Gmchusyr,
I recommend to check if workflow trigger on email is enabled in SharePoint with the PowerShell command below:
$spWebService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $spWebService.DeclarativeWorkflowAutoStartOnEmailEnabled
If it is False, please enable it with the PowerShell command below and then check the results:
$spWebService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $spWebService.DeclarativeWorkflowAutoStartOnEmailEnabled = $true $spWebService.Update()
Here is a similar thread for your reference:
More references:
http://adayinsharepointv3.blogspot.jp/2012/12/kick-off-workflow-in-sharepoint-library.html
For SharePoint 2013 workflows, the workflows can be triggered by incoming emails, however the workflows will fail after starting.
In this case, we need to activate the Workflows can use app permissions in Manage site features in site settings.
http://dhasalprashantsharepoint.blogspot.jp/2013/07/sharepoint-2013-workflow-suspends-on-e.html
Best regards.
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Edited by Victoria Xia Monday, March 16, 2015 6:23 AM
- Proposed as answer by Indul Hassan Monday, March 16, 2015 6:34 AM
- Marked as answer by gmchusyr Monday, March 16, 2015 11:17 AM
Monday, March 16, 2015 5:39 AM -
Thank you! I ran the commands and the workflow is now working on incoming emails.Monday, March 16, 2015 11:18 AM