I am using COLLECTION_COPY_ITEM in order to copy a content from source to destination.
After the service is executed the item is checked in the destination with a new content id. I am doing this with RIDC. How do i fetch the new content id i.e where will this value be stored ?
Which result set should i refer?
Please provide inputs.
Thanks in advance.
Unfortunately the COLLECTION_COPY_ITEM does not have return data to know the content ID created in the destination folder. Is duplication absolutely necessary in the first place, can't you have a shortcut created in the destination folder. This way the shortcuts are handled using separate tables in the DB, you can look up to the table and get the list of shortcuts in a particular folder and more importantly avoid duplication and new content ID issue.
Hope this helps
I have used IDC Command to copy files from source to destination using COLLECTION_COPY_ALL. It almost same as ITEM.
Have you used the attribute
So that the file will be copied to specified destination.
try and let me know.
COLLECTION_COPY_ITEM does not create a new content item but it moves the item from Folder1 to Folder2 , so all that changes w.r.t the content item is it 's xCollectionID and dCollectionPath .
Rest all details and metadata remains the same , so if you execute DOC_INFO on this item with the same dID then DOC_INFO resultset will have the dDocName value.
If you are looking for creating the same content item as a new one in another folder then content cloning should be done . This can be achieved using COPY_REVISION service call .
Details for the service and it's RIDC implementation / sample code is provided here : http://jonathanhult.com/blog/2013/04/clone-content-webcenter-content-11g/
Hope this helps .
After executing the service COLLECTION_COPY_ALL will i be able to fetch the content ID of the item checked in the destination? Is there any metadata field which i can make use from some of its resultset to fetch the new contentID? Which resultset of COLLECTION_COPY_ALL and metadata field has the value?