Skip to main content

My Workflow copies documents from source location to a destination location with a different metadata.

So,

1. Query the documents and get the collection

2. Copy the documents using copy.asmx

3. Query the destinaiton library for the files just moved - get the collection

4. Check In the files with new metadata

I followed this link to achieve until step 2, so the files are copied but are not checked-in:

https://askmanisha.wordpress.com/2013/11/25/copy-files-from-one-document-library-to-another-using-nintex-workflow/

The files are being copied but some files(I think pdf files) are staying as Checked Out because there is versioning "turned on" on the destination library.

My goal is to check them in, I tried the below:

Used Query List to get the item id and check it in, but am not successful. Any help is appreciated..

Fixed this -

1. Instead of Nintex Credentials, Used Farm Administrator Credentials for Copy.asmx web service.

2. Query for Checkedout files on the list, get the ids in a collection:

<Query> <Where><IsNotNull>      <FieldRef Name="CheckoutUser" LookupId="TRUE" />    </IsNotNull>  </Where>

<ViewAttributes Scope="Recursive" />

</Query>

3. Check in files by looping through the id's


Hi Karthik,

You should mark your solution as the correct answer.


Reply