Forum Discussion
Abel GarcĆa CelestrĆn
Jan 25, 2017Copper Contributor
Get-PnPProvisioningTemplate and workflows
In my today's SharePoint situation I need to replicate an website from a dev environment into another dev environment (without content, only structures). I have been looking to the Get-PnPProvis...
- Jan 26, 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.
Abel GarcĆa CelestrĆn
Jan 26, 2017Copper Contributor
It helps indeed. However I am missing the fact of whether this is only possible with 2013 worflows or also with 2010 workflows as well? Because in my current scenario I need this to work with the latter ones.
Deleted
Jan 26, 2017It 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):
- DeletedJan 31, 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.