AnsweredAssumed Answered

Copy List Item into a Doc Library using UpdateListItems

Question asked by shyamshinde08 on May 18, 2015
Latest reply on May 26, 2015 by andrew.beals@nintex.com

Hi All,

 

I'm trying to copy a list item into folder in a document library.

I have used the "Lists.asmx" webservice for it and the "UpdateListItems" webmethod.

Below is my XML, I have used a "FileDirRef" to provide the folder under which I need to copy the item.

But the item is been copied outside the folder at the library level.

 

XML

<m:UpdateListItems>

      <m:listName>Archival List</m:listName>

      <m:updates>

        <Batch OnError="Continue" ListVersion="1" ViewName="">

          <Method ID="1" Cmd="New">

            <Field Name="er">Test</Field>

            <Field Name="FileDirRef">[Site URL]/Sites/C0001968/Archival List/18-May-2015</Field>

          </Method>

        </Batch>

      </m:updates>

    </m:UpdateListItems>

 

Output:

 

Can someone please tell where I'm going wrong.

Thanks in Advance

 

Regards,

Shyam

Outcomes