Richard_S
Novice

Importing / Exporting Nintex Workflows and Forms

Hello,

we would like to import / export Nintex Workflows and Nintex Forms from one SharePoint Online Site Collection to another Site Collection automatically. 

 

So far we successfully used the concept, described on https://help.nintex.com/en-us/sdks/sdko365/Reference/REST/NWO_REF_REST_Auth.htm

 

Our Goal:

We would like to change the authentication method from the current user-based authentication method (described on the URL) towards a “SharePoint App-Only” (with Client ID and Client Secret).

 

Is this possible? We did not find any information about this

0 Kudos
Reply
2 Replies
kchaluvadi
Scout

Re: Importing / Exporting Nintex Workflows and Forms

I would recommand to use a service account (that has access to both source and target sites) with appropriate permissions, its simple.

0 Kudos
Reply
nico
Explorer

Re: Importing / Exporting Nintex Workflows and Forms

Hi, unfortunately this is not supported.

 

I had to dev a similar application, and I already open a ticket on this subject, and they will not cover this point. No more info on this point.

 

But, my explication : 

 

All there API works with the cookie authentication. With an SharePoint App-Only you can have a authentication token, but not the cookie.  So with an App-only you can't retrive cookie, and so, you can't pass you cookie in your request header on the nintex API.

 

I recommande you to use a Service Account. 

If you have modern authentication on your tenant and MFA, you can create an App Passeword on your account, and use PnP to connect on your SharePoint site

https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d...

 

Spoiler alert : The Nintex API doen't support New Responsive Forms.

So you can't export New Responsive forms (you will have an error)

If you have a workflow that use task with new responsive form, you will have an error.

this is only mention in the "Export Workflow" API page : https://help.nintex.com/en-us/sdks/sdko365/Reference/REST/NWO_REF_REST_ExportWorkflow.htm?TocPath=Ni...

 

 

 

0 Kudos
Reply