The following code will let the workflow associated with the Incoming Email Enabled Library be started automatically when it is set to started when a new item is created.
$spWebService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $spWebService.DeclarativeWorkflowAutoStartOnEmailEnabled= $true $spWebService.Update()
My client is keen to know about any performance issues or limitations before setting it to TRUE.
In addition to what hajamie outlines, I also had to go into Site Settings | Manage site features and enable Workflows can use app permissions, then do an iisreset to get a workflow to start automatically with an incoming email. Just a note in case you decide to proceed with setting this to true.
Answered by Mishayla on August 6, 2020
I believe that the issue is with security, rather than performance. This KB article describes the setting.
This problem occurs because a security fix in Windows SharePoint Services 3.0 SP1 prevents declarative workflows from starting automatically under the system account. E-mail enabled list items are always created under the system account.
To prevent the declarative workflows from impersonating the system account, the workflows will now impersonate the user who created the workflow association
So I guess this could possibly allow users to impersonate other users in some circumstances.
Answered by hajamie on August 6, 2020
1 Asked on December 3, 2020 by madhan
2 Asked on December 3, 2020 by dilip-kumar-yadav
2 Asked on December 3, 2020 by tarun
1 Asked on December 2, 2020 by datalearner
1 Asked on December 1, 2020 by thomas-de-wulf
4 Asked on November 30, 2020 by chandhu-vutukuru
1 Asked on November 30, 2020 by user1816979
0 Asked on November 30, 2020
1 Asked on November 30, 2020 by akshay-manke
0 Asked on November 30, 2020 by lancelot
1 Asked on November 29, 2020 by burre-ifort
2 Asked on November 29, 2020 by sukhdev-zala
1 Asked on November 29, 2020 by naveen
1 Asked on November 28, 2020 by saaru-lindestkke
2 Asked on November 26, 2020 by kaddrik
2 Asked on November 26, 2020 by thecoder
2 Asked on November 17, 2020 by lies-ugent
1 Asked on November 16, 2020
1 Asked on November 8, 2020 by user92615
Get help from others!