Solved

Attach workflow to library Programatically


Badge +1

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

icon

Best answer by TomaszPoszytek 31 May 2017, 13:13

View original

4 replies

Userlevel 7
Badge +17

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%3FTocPath%3DNintex%2520Off… 

This should work for you

Regards

Badge +1

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

Userlevel 7
Badge +17

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

Badge +1

You saved my day Tomasz!! Thanks

Reply