02-27-2019 05:07 AM
Hi,
I currently need to re-index 15'000+ documents. My first doctype has a KW 'reference' that can have up to 12 instances . I have 12 instances of 'reference' I need to copy the file 11 times and re-index the main files and all the copies with one of the reference.
All the documents are already identified and will go through a workflow that runs a Unity script. In that script, I create a list of the instances of all the references. Then I need to copy the document currently in the Workflow and re-index the copy on one of the 'reference'.
Is there any way to duplicate / copy a document in the Unity Script ?
Any help / idea would be appreciated 🙂
02-27-2019 08:59 AM
In that case, you will need to use the methods exposed by the Storage class to loop the creation of a new Document as many times as you need new documents created -- for each process, you can capture the PageData and Keywords from the originating document and apply them to the new document. There are no direct copy or duplicate methods exposed by the API.
02-27-2019 06:17 AM
Please add an example scenario to help the community respond. Think about identifying: the number of documents, how will you "find' the documents, are the documents in workflow, is this a one-time process or on-going, do you want a copy of the document or is re-index sufficient, what specifically do you want to do to the documents found.
02-27-2019 07:00 AM
I'd echo Shane's request -- in order to give a useful answer, it would be helpful to know more about the business case, etc.
02-27-2019 07:37 AM
So if I'm understanding you properly, the process is as follows:
Is that correct?
02-27-2019 08:59 AM
In that case, you will need to use the methods exposed by the Storage class to loop the creation of a new Document as many times as you need new documents created -- for each process, you can capture the PageData and Keywords from the originating document and apply them to the new document. There are no direct copy or duplicate methods exposed by the API.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.