Forum Discussion
Get-PnPProvisioningTemplate and workflows
- Jan 25, 2017According to PnP-Core code, the ObjectWorkflow ObjectHandler should extract Workflows lists, so, as Paul said, did you try with latest version?
Also, you can enable Debug before running the Get-PnPProvisioning template:
Set-SPOTraceLog -On -Level Debug
and let us know if there's any error.
It will work with both as 2010 and 2013 deliver xaml.
- Abel García CelestrínJan 30, 2017Copper Contributor
Hi Paul,
I keep struggling with the provisioning templates for sites containing 2010 Workflows.
These are the commands I have tried:
Get-PnPProvisioningTemplate -Out $templateFolder\full.pnp
Get-PnPProvisioningTemplate -Out $templateFolder\wfl.pnp -Handlers Workflows
In both cases when I inspect the zip file I find this (no xaml files whatsoever):
- AnonymousJan 30, 2017
strange maybe VesaJuvonen can take a look at it.
- VesaJuvonenJan 31, 2017
Microsoft
PnP provisioning engine export does not support unfortunately SP2010 workflows. 2013's are supported. SP2010 workflows are using slightly different API surface and file format. Even though theoretically exporting SP2010 workflows could be done in some level, exporting any custom workflows with code behinds would not work and experience inadequate.