Hi, I and new to Nintex workflows and need help. Say i have Test lib and 2 folders france, Poland and status choice field (ready to Move, Rejected, Complete). France has 2 folders (current rec and old rec) similarly Poland also will have same folders(Current rec and old rec) when the status of file from current rec is "ready to move " it should be pushed to Test2 lib and if the file in Test2 lib is rejected, the file should be back to France-Current Records folder.
Please suggest how to move the file using source url so that file will be back to its appropriate location.
Solved! Go to Solution.
You can always use the "Call web service" action and call the "_vti/bin/copy.asmx" and copy the document to the desired location.
Create a List workflow and trigger based on the approval column status.
1) Add the logic to derive the source url of the document and the would be destination url based on the approval status.
2) Add "Call web service" action to invoke "Copy.asmx" and pass the parameters.
3) Delete the document at the source by using "Delete item" action.
Thank you. i am able to copy to lib Test2. how to work on Rejection ? if the file in Test 2 is rejected it as to go back to its folder from the location it was in test 1 lib..
Add a field SourceUrl to the library. Once the document is copied get the ID of the newly copied document and update the "SourceUrl" column with the link from where the document was initially copied. On rejection the document can then be moved to the original location by using action "Call webservice" as mentioned in my earlier response.
Hope this helps
HI Avinash, Thank you. I should add SourceUtl to Test 1 lib and ID from Test 2 Lib . If item with ID "x " is rejected in Test 2 copy to Test 1 right ?
I got the newly copied document id from lib2 and filed FolderURL in lib2 with souceurl. I used query to query the lib2 with status=Rejected and used the "Call Webservice". I have error:
Can you please help? Also how to get the files from multiple lib's (lib1a, 2a, 3a, 4a) with status- Ready to Move and copy these files to lib2. Currently i have created one siteworkflow which query's 1 lib( lib1a), moves the files to lib2.
Thank you for your help in advance!
Can you try by assigning the actual url for SourceUrl and DestinationUrl?
Also check whether CheckOut-CheckIn enabled on the document lib. If CheckOut is enabled, this type of service error can occur.