Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help
in Search

Adding multiple items to list

Last post 08-17-2012, 3:22 PM by Vadim_Tabakman. 1 replies.
Sort Posts: Previous Next
  •  08-17-2012, 5:18 AM 24535

    Adding multiple items to list

    Hey there,

    I need to add n (unknown amount) items to a list via nintex workflow 2010. To do this, i use the "loop"-action with the counter n. It works fine, but when "save looping" is enabled in central administration, every iteration takes at least a few minutes. The result is, that adding these n items takes way to long.

    1. Do you have any suggestions how I can add these n items to the list immediatly?
    2. Does SharePoint 2010 provide a webservice which can add multiple items to a list at once?
    3. If there is no alternative apart from the "loop"-action way: How critical is it to disable "save looping" in central administration? What is you recommendation? Would it cause performance problems on our sharepoint farm?

    Thank you very much for your help!!

    Cheers
    Markus

  •  08-17-2012, 3:22 PM 24549 in reply to 24535

    Re: Adding multiple items to list

    HI Markus,

    it's worth looking into the Lists.asmx web service.  The UpdateListItems web method allows you to create multiple items at one time.

    You just need to build up the appropriate information.

    The only thing is, you still need to loop through and build up the packet.

    The other option, is to find a way to have 'n' items in a Collection variable.  Then you can use a For Each action to loop through it and create that many items.  The For Each isn't affected by Safe Looping.

     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems