cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Provisioning nintex workflow to a sharepoint 2013 list

We have Nintex workflow 2013 and it's running on a SharePoint 2013 on premise environment.

Is it possible to provision a nintex workflow programmatically using server site c# code on a SharePoint list using a site template ? So, a new site with a list in it is created with a site template and on that list a workflow must be provisioned.

If so, is there somebody who has some sample code ?

Koen Vorsselmans

0 Kudos
Reply
5 Replies
Workflow Hero

Re: Provisioning nintex workflow to a sharepoint 2013 list

Hi Koen,

I had a requirement of creating workflows dynamically on various different sites and the approach I used was to publish the workflows using Nintex webservice (_vti_bin/nintexworkflow/workflow.asmx) I used powershell to do my job but surely you could write code in c# and call the same webservice method (on feature activation) to publish your workflow. You could probably store workflow file (.nwf) in one of your library on your site and your feature could publish this workflow using the NIntex workflow webservice.

The method to use is PublishFromNWFXml.

Regards,

Shrini

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Provisioning nintex workflow to a sharepoint 2013 list

Thanks,

I'll try it.

Koen Vorsselmans

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Provisioning nintex workflow to a sharepoint 2013 list

HI Koen,

Did that work for you?

Regards,

Shrini

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Provisioning nintex workflow to a sharepoint 2013 list

Hi shrini,

Because of another urgent issue I didn't have time yet to test it. Next week I'm on vacation. I'll pick it up again after my vacation and let you know.

Kind Regards

Koen

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Provisioning nintex workflow to a sharepoint 2013 list

Hi shrini,

In the meanwhile with al little help from nintex support we managed to do this.

Kind Regards

Koen

0 Kudos
Accept as Solution Reply