Today, created a Nintex workflow to send out E-mail notification to SharePoint groups. Start-up option for the workflow was: “Start when Items are created”, but in SharePoint 2007 incoming email didn’t trigger the workflow on new item creation.
Incoming E-mail attachments areuploaded to SharePoint libraries using “System Account” (If E-mail settings are set to: “Accept e-mail messages from any sender”) which will not trigger workflows by design!
What’s the Fix for SharePoint workflow not starting on incoming email?
Well, the fix is simple! Just execute this STSADM command line:
stsadm -o setproperty -pn declarativeworkflowautostartonemailenabled -pv true
This fix applies to MOSS 2007 and SharePoint 2010 for incoming email to start workflow. Same fix applies to SharePoint designer workflows also! SharePoint incoming email doesn’t trigger workflow by default, It works after the fix.
By default, starting a workflow through incoming email is not enabled. This PowerShell script enables workflow to started automatically when a new item is created.
$SPWebService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $SPWebService.DeclarativeWorkflowAutoStartOnEmailEnabled = $true $SPWebService.Update()