AnswerBun.com

Setting DeclarativeWorkflowAutoStartOnEmailEnabled to true

SharePoint Asked by prasad on August 6, 2020

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.

2 Answers

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.

Also,

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

Add your own answers!

Related Questions

External Sharing – Sharepoint Mobile App

2  Asked on December 3, 2020 by dilip-kumar-yadav

     

Cascading dropdown list in SPFx web part

1  Asked on November 29, 2020 by burre-ifort

       

Project Server Web App Database Provisioning failed

2  Asked on November 29, 2020 by sukhdev-zala

 

How to update ShqrePoint Group name?

2  Asked on November 26, 2020 by kaddrik

     

SharePoint Framework to read term from TermSet

1  Asked on November 8, 2020 by user92615

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP