cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Attach workflow to library Programatically

Jump to solution

Is there any way to import the Nintex workflow o365 backup file (.nwf) to a library using CSOM ?

Labels: (1)
Reply
4 Replies
Highlighted
Automation Master
Automation Master

Re: Attach workflow to library Programatically

Jump to solution

Sure, you can use nintex o365 rest api‌ and the method "Import into a new workflow": http://help.nintex.com/en-US/sdks/sdko365/#Reference/REST/NWO_REF_REST_ImportWorkflowPost.htm%3FTocP... 

This should work for you

Regards

View solution in original post

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Attach workflow to library Programatically

Jump to solution

Thats Great!! Tomasz. 

Could you also suggest, how can we get the Workflow ID. I can see ID is mandate in the REST API for exporting the workflow

Reply
Highlighted
Automation Master
Automation Master

Re: Attach workflow to library Programatically

Jump to solution

Its easy

  1. export  the workflow manualy,
  2. open the file with 7z or WinZip (It's an archive),
  3. go to the metadata.xml file,
  4. open it and there you will find workflow guid 

 Easy, isn't it? Now you can use it in your workflows. 

 Regards, Tomasz

Reply
Highlighted
Nintex Newbie

Re: Attach workflow to library Programatically

Jump to solution

You saved my day Tomasz!! Thanks

0 Kudos
Reply