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.
Deleted
Jan 26, 2017It will work with both as 2010 and 2013 deliver xaml.
Abel GarcĆa CelestrĆn
Jan 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.
- Abel GarcĆa CelestrĆnJan 31, 2017Copper ContributorCan you please point me to some resources so I can read more about the "theoretically exporting SP2010 workflows could be done in some level" part?
I have to create 4 site collections with the same workflow and so far it seems that the only way to do it is to replicate the wf manually all 4 times. The workflow is quite big with about 20 activities including custom tasks. For what is worth I am using SP 2013 / SP Designer 2013 / WF 2010.
Thanks!