Skip to main content
Nintex Community Menu Bar
Solved

Attach workflow to library Programatically

  • May 31, 2017
  • 4 replies
  • 11 views

Forum|alt.badge.img+1

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

Best answer by TomaszPoszytek

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

4 replies

TomaszPoszytek
Forum|alt.badge.img+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


Forum|alt.badge.img+1
  • Author
  • 3 replies
  • May 31, 2017

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


TomaszPoszytek
Forum|alt.badge.img+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


Forum|alt.badge.img+1
  • Author
  • 3 replies
  • June 1, 2017

You saved my day Tomasz!! Thanks