Oct 19 2016 01:30 AM
Hi all,
Can anyone tell me which steps I should follow to privision a Reusable SharePoint workflow created with SharePoint Designer?
Extracting a PnP template with -Handlers Workflows seems to be the first step, but I'm not sure what my VSO project needs to have in order to provision a workflow.
Many thanks,
Rémy Bosman
Oct 19 2016 01:39 AM - edited Oct 19 2016 01:39 AM
The easiest way to figure out how to do this is by using the PowerShell commands
Get-SPOProvisioningtemplate and Apply-SPOProvisioningtemplate
You could run this with or without the Handlers/ExcludeHandlers options. If you just do the workflows you risk not including the columns/content types/lists etc that may be required by the workflow.
If you want tot do this via code then simply replicate the same code as is used within the code used by the above PowerShell commands
Oct 19 2016 02:02 AM - edited Oct 19 2016 02:03 AM
Hi Remy,
I am having a simular issue with Csom C#.
Adding @Vesa Juvonen
Do you have a way how to upload new wf's with pnp?
Oct 19 2016 02:07 AM
@Deleted, what do you mean by new workflows? Workflows that are not exported from an existing site?
Oct 19 2016 02:27 AM
Hi Pieter,
i mean workflows that do not exist yet in a tenant but which you want to upload to a new tenant.
do you need to upload the WSP? or is there a new way how to do this? bypassing a wsp?
i see when i get a export the whole workflow is exported.
Kr,
Paul
Oct 19 2016 02:33 AM
@Deleted, yes SPD workflows are exported and imported using PnP Templates. No need for WSPs.
Oct 19 2016 02:50 AM
Hi Pieter,
so this means you will need to use the exported xml in your pnp file?
kr,
Paul
Oct 19 2016 02:57 AM
@Deleted,
Yes, simply do Apply-SPOProvisioningtemplate ( or the c# equivalent) to apply the template and the workflow inside the tmeplate will be provisioned
Mar 07 2017 02:29 PM
Mar 07 2017 11:07 PM
Mar 09 2017 01:36 AM