Sunday, January 22, 2012

Call web service from Nintex Workflow - To Copy List item between Site Collections

Requirement: Copy a List item between site collections.

Oops! Nintex doesn't has any direct method to do that. It offers Copy/Move/Create list items with in Same site, but not between site collections. So, Lets seek help from Web services with Nintex.

Lets say, I've a Source-list and Target-List. What I want is: based on some conditions, copy the item from source list to target list. Here is the Nintex's part.
  1. Drop a Call web service action in Nintex workflow
Nintex Call Web Service Action
             2. Get the web services from the target site, e.g:, and then configure the action as per the below picture
Call web service from Nintex To Copy List item between Site Collections

    So, Look at the highlighted sections. Here you have to specify the GUID of the target list and supply the XML data for values.

 <Batch OnError="Continue">
     <Method ID="1" Cmd="New">
              <Field Name="Title"> {ItemProperty:Title} </Field>
               <Field Name="Salary"> {ItemProperty:Salary}</Field>

Here, the {ItemProperty:Title} and {ItemProperty:Salary} are fields inserted using Nintex "Insert Reference" button!

For the Update operation, we can use the same method, only  the CMD changes from NEW to UPDATE.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap="">
        <UpdateListItems xmlns="">
              <Batch OnError="continue" PreCalc="TRUE" ListVersion="0"> 
              <Method ID="1" Cmd="Update"> 
                <Field Name="ID">{ItemProperty:ParentID}</Field> 
               <Field Name="ApprovedinTargetList">No</Field> 

The Most important part here is: ID field, which maps our update operation with the particular list item. And XML is case sensitive, e.g. "id" will not work, but "ID" will work!

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:


  1. I was able to get the copy lis item going but Update does not seem to work

    1. Bhavneet,

      The above code posted from a working workflow. Compare your XML with the above provided XML on update section, Verify the ID of your existing List item.

    2. > should be line 6. This might cause an issue. Otherwise it is always to catch what has been returned from your request.

  2. Thanks for this. It is very helpful.

    How can I move items in document library using this method? Will this method work with document library ?


    1. Sure, You can use Copy & Update web services. Here is the example:

  3. Hi!

    I am able to copy all the other list items to another site collection, except for one. Boolean type (yes/no)list item doesn't appear to the destination list at all. Is there anything special I should know in these kinds of list items?

    Actually when I try to copy that boolean item, all the other items fail to copy too. If I try to copy items without that boolean item, everything goes fine.

    There are no error messages in the workflow and it seems to run good, but cannot get anything to destination list.


    1. Hi Jack,

      You can use:
      <Field Name=\"Completed\">TRUE</Field>


      <Field Name=\"Completed\">1</Field>

  4. Hi Salaudeen,
    I want to copy an attached file. Cannot figure out how to do that.

  5. Hi Salaudeen,
    Thanks for this post as the content is hard to find on the web!
    Looking to see if you could assist...

    I'm am testing this solution prior to implementing but am hitting a wall right away when trying to create a new item in a target list from my source list.

    This is what I have in my SOAP Editor area:



    Originally, the BatchOn Error and we not in the code when I started to configure so I added per your example.

    URL I'm using for the target list is of a child site and is:

    Not sure if you're checking this anymore, but any help would be appreciated!


    1. One common pitfall is: soap XML is case sensitive. ID and id are not same. check it once.

  6. FYI this does not copy an item, it just creates a new item. UpdateListItems method adds, deletes and updates list items but it does not copy. What you are doing is creating a new list item and updating the meta data.

    Nintex/Web Services do not have a action/method to copy lists items between site collections or to folders with in lists.

  7. Hi Salaudeen,

    I am trying to access external SOAP service in sharepoint page using AJAX, Jquery and I get access denied error. Can you please let me know how to solve this ? I am not allowed to use server code.

    Thanks !

  8. What about to remove an Item, would the CMD="Remove"? Or how would that differ?

  9. I am working on a task similar to what you have posted above but in my source list i have Multiple lines of text,Date and Time and Lookup field and i am unable to copy them.

    Is there any way to do this?



Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...