SharePoint OOB Approval workflows are missing on SharePoint online site even after activating\reactivating the "Workflows" site collection feature.
Missing workflow templates:
Publishing Approval
Approval - SharePoint 2010
Collect feedback - SharePoint 2010
Collect Signatures - SharePoint 2010
Issue:
SharePoint OOB Approval workflows are missing on SharePoint online site even after activating\reactivating the "Workflows" site collection feature.
We just see below templates,
And in SharePoint designer, Wfpub contents are shown as folder and NOT as a library.
Background:
- Workflows feature depends on OffWfCommon (c9c9515d-e4e2-4001-9050-74f980f93160).
- OffWfCommon generates wfpub library when activated.
- Workflows features will deploy globally reusable workflows in wfpub when activated.
Initially activating Workflows means activating OffWfCommon and Workflows at the same time.
So, OffWfCommon will generate wfpub library and Workflows will deploy those workflows.
But unfortunately from the 2nd time, activation of Workflows feature only means the Workflows feature itself. This is because OffWfCommon remains activated. So it works like this.
- Workflows features will deploy globally reusable workflows in wfpub when activated...
But wfpub is not there. So empty folders are generated to cover up.
Expected:
Actual:
Resolution:
-Deactivate the "Workflows" site collection feature.
-Remove Wfpub folder from "_catalogs" - SharePoint designer
-Toggle the OffWfCommon feature
- Connect to PNP site collection and run below cmd,
Disable-PnPFeature -Identity c9c9515d-e4e2-4001-9050-74f980f93160 -Scope Site
Enable-PnPFeature -Identity c9c9515d-e4e2-4001-9050-74f980f93160 -Scope Site
-Now activate the "workflows" feature from UI should bring back the missing OOB workflows.
Updated Aug 27, 2020
Version 2.0Premkumarkc
Microsoft
Joined August 17, 2019
Microsoft SharePoint Blog
Welcome to the SharePoint Blog! Learn best practices, news, and trends directly from the SharePoint team.