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
Yes last version and everything. I just notice that workflow info is not generated when using xml format, at least not without any aditional flags. I exported the template as pnp and solved the issue. Thanks!
Deleted
Jan 26, 2017Maybe my blog https://sharepoint-specialist.nu/how-to-implement-sharepoint-workflow-with-custom-forms-in-pnp-template-3a515cbfd88#.jef62njbw will help you!
- Abel GarcĆa CelestrĆnJan 26, 2017Copper ContributorIt 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.
- DeletedJan 26, 2017
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):