Skip to main content
Nintex Community Menu Bar

copy nintex form to another site programmatically

  • Dec 21, 2015 4:49 PM UTC
  • 7 replies
  • 37 views
  • Translate All

Forum|alt.badge.img+5

I have 30+ contract execution sites that all contain the same list based on a content type. I need to add a field to all instances of the list in all the contract execution sites. I think I can figure out how to do this in powershell.

 

Next I need to update the Nintex 2010 form that goes with this list. That is easy enough to do in one site. I want to then copy that form to the lists in the remaining project execution sites. I think I can export the form, but is there a way to install that form on a given list using powershell?

7 replies

Chris_Ben
Nintex Employee
Forum|alt.badge.img+14
  • Nintex Employee
  • Dec 22, 2015 5:20 AM UTC

I'm not sure about PowerShell Josh (not my strength) but you could look at using something like Sharegate to do this for you.

Translate

Forum|alt.badge.img+7
  • Dec 22, 2015 11:10 AM UTC

Forum|alt.badge.img+5
  • Author
  • Nintex Partner
  • Dec 23, 2015 12:58 AM UTC

I'm on 2010, so the above link is no use. I have manually updated all 27 lists 3 times today. Import/ export helps but this is ridiculous.

Translate

Forum|alt.badge.img+7

Hi Joshua Moore​,

Did you find a solution to your problem ?

I am searching for a solution every 6 months hoping that Nintex or someone would find a breathrough or at least workaround.

For now my solution is : NOT to use Nintex Forms or Workflows in every site collections/sites/sub-sites but instead have a "central site" where users use the forms and a workflow in the list that copies the item values into the "correct" target site/sub-site. Then I have a regular purge of the submitted items.

This way I only have 1 central place to maintain all my forms and the business can change them if needed.

The downside of course is that the items once in the target site(s) lost their CreatedBy since it's the name of the workflow author, and a form with lots of repeated sections are just showing as plain XML but at least the data is there so we can do reports on it.

This solution is only valid IF users do not need to modify the data, otherwise they will not be so happy to open it in the out-of-the-box SharePoint item form UI.

Would love to hear others with their workarounds on updating 50+ forms in sites.

thanks.

François.

Translate

Forum|alt.badge.img+7
  • Nintex Partner
  • Jan 20, 2016 1:36 PM UTC

For workflow there is an api to publish workflow programmatically, for forms there seems not to be such an api, but a uservoice submission at https://nintex.uservoice.com/forums/229406-2-nintex-forms-for-sharepoint/suggestions/6546116-publish-a-nintex-form-by-webservice-or-nintex-work

Translate

Forum|alt.badge.img+17
  • Nintex Partner
  • May 12, 2017 2:19 PM UTC

There is now a Forms API as documented in the SDK Web Service Reference 

This allows 

Endpoint URL

DeleteForm

GetFormXml

PublishFormXml

Example 

Migrate Forms with the Nintex Forms Web Service API

Translate

Forum|alt.badge.img+7
  • Nintex Partner
  • May 12, 2017 4:03 PM UTC

Yeah! I just found this the other day - and already used that in a current project to deploy Nintex Forms from PowerShell!

Translate