Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Migrate documents

    Posted Thu September 03, 2020 03:29 PM

    For a migration project I have to copy the documents from one filenet(source) to another(target) keeping the same document ids.

    I saw that when creating a document it is possible to create a document by passing the id, but I can't find anything to create a version of a document by setting the id as well.

    How can I do?

    To create document I use:

    Factory.Document.createInstance(objectStoreImport, symbolicName, docId, versionSeriesId, reservationType);

    How can I create a document version keeping the same id of the filenet source ?



    #FileNet
    #Support
    #SupportMigration


  • 2.  RE: Migrate documents

    Posted Fri October 09, 2020 08:48 AM

    I think yyou are looking at the wong method. To create a new version of a document you need to check it out. The checkout method (inherited from versionable) has an optional Id for the reservation object.

    I think this Id will get the new object id of the (then) checked in document.

    /gerold



    #FileNet
    #Support
    #SupportMigration