Jan 25 2017 07:25 AM
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-PnPProvisioningTemplate
cmdlet of the SharePoint PnP Powershell. However it seems that the generated template doesn't include existing workflows associated to the current lists, not even in the case of OOB workflows like "Approval". Is there a workaround for this using PnP or other existing tools?
Thanks in advance
Jan 25 2017 10:19 PM
Hi Abel,
have you been using the latest version of PNP? what i get normally is the template and the xaml files.
kr,
Paul
Jan 25 2017 11:40 PM
SolutionJan 26 2017 01:47 AM
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.
Jan 26 2017 01:50 AM
Jan 26 2017 02:16 AM
Jan 26 2017 04:01 AM
Maybe my blog https://sharepoint-specialist.nu/how-to-implement-sharepoint-workflow-with-custom-forms-in-pnp-templ... will help you!
Jan 26 2017 04:06 AM
Jan 26 2017 11:32 AM
It will work with both as 2010 and 2013 deliver xaml.
Jan 30 2017 02:11 PM
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):
Jan 30 2017 10:48 PM
strange maybe @VesaJuvonen can take a look at it.
Jan 31 2017 01:23 AM
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.
Jan 31 2017 02:17 AM
Jul 13 2017 12:15 AM
Hi Abel,
I'm having the same problem with SP2010 workflows and I'm curious how you got around this problem.
Thanks!
Jul 13 2017 01:13 AM
Hi Aldrin,
Unfurtunately I ended up doing this manually. If you find an alternative please share it here.
Good luck,
Abel
Aug 23 2017 05:05 AM - edited Aug 23 2017 05:18 AM
Hi,
Can you share the manual steps that were followed by you? To generate workflow definition for SP 2010 workflows
Aug 23 2017 05:24 AM
Jan 25 2017 11:40 PM
Solution