question

Ana-7414 avatar image
0 Votes"
Ana-7414 asked JoyZ answered

Disable SharePoint Online Declarative Workflows

I am trying to set the following SharePoint Online site properties to $false, but keep receiving "Access Denied"
AllowCreateDeclarativeWorkflow
AllowSaveDeclarativeWorkflowAsTemplate
AllowSavePublishDeclarativeWorkflow

I tried PNP

$Site = Get-PnPSite
$Site.AllowCreateDeclarativeWorkflow = $false
$Site.Context.ExecuteQuery()

and CSOM

I am running with AppId and Secret with full control permissions over entire tenant. I also tried using credentials of site collection administrator.
Custom scripts are disabled on tenant level.

Could reproduce on multiple sites and another tenant.

Would appreciate any hints.

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoyZ avatar image
1 Vote"
JoyZ answered

@Ana-7414,

Same result with you, workflow has been deprecated in SharePoint online, not necessary to disable it for yourself, for more information ,please refer to https://support.microsoft.com/en-us/office/sharepoint-2010-workflow-retirement-1ca3fff8-9985-410a-85aa-8120f626965f


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

trevorseward avatar image
1 Vote"
trevorseward answered

These settings manipulate SharePoint 2010 workflow availability which has already been removed from SPO, i.e. the properties won't do anything.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.