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
Thanks for your time. I found the issue. I was generating xml templates. It turns out that wf information is included as a separated xaml file, so in order to get this you need to export to the open xml (pnp) file format. Perhaps there is some flag to generate those files and still use the pure xml format for the template (kind of what you do with the PersistBrandingFiles flag.
Luis MaƱez
Jan 26, 2017MVP
It's weird, cos there's no special Flag to that, and in theory, should place all the extracted Files in the same path specified in the -Out flag. Are you using a full path in the -Out flag? (kind of c:/temp/template.xml)
Anyway, if works fine with the .pnp extension, we're good :)
Anyway, if works fine with the .pnp extension, we're good :)