Changing the Class property from One Object type to new Object type

Hi there

I'm working on consolidating classes of various object types into a single Object Type. My primary challenge is migrating files and documents to a new class under this unified Object Type. Could someone advise on the different methods for changing the class from one object type to a new object type?

For example, we have multiple assets currently stored as separate Object Types. We aim to categorize all assets under a single Object Type called "Assets" and migrate all metadata and files into the new respective classes without manual entry. We also plan to eliminate the obsolete object types that won't be used going forward. What is the best approach to achieve this?

One option I’m considering is using replication. However, I'm unsure how to ensure that during import, the system selects the correct classes I want to add, rather than the original class from which the values were exported. I don't wish to delete the previous object types and classes until the transfer to the new class is complete.

Please share your thoughts and possible alternative solutions.

Thank you

Parents
  • There's a lot to consider here, both with the migration of the objects to the new object type (for instance how to update documents and other objects that have been referring to the old object types to point to the new objects) as well as the other vault configuration (for instance any object type specific auto-calculation rules and metadata card configurations would have to be updated as well).

    I recommend that you raise this with your M-Files reseller so you can review your current vault configuration and plan the change together. If you don't yet have a separate development / test vault, you should create a copy of the current vault so that you can test these changes in a sandbox environment first.

  • Thank you for your prompt response  

    I've reviewed all the vault configurations and noted everything that needs amending. However, my real challenge is copying all the metadata from one class to another within different object types in the same vault.

    I have a class called "Fleet" with an object type of "Fleet". Now, I want to move this "Fleet" class to a new object type called "Assets" within the same vault. I made a copy of the original "Fleet" class and changed the object type to "Assets". This created a similar class called "Fleet-1" under the "Assets" object type.

    I'm now trying to copy all the information from the current "Fleet" class to the newly created "Fleet-1". I used the Content Replication feature to export all existing data from the "Fleet" object type and destroyed the data after exporting. Once the export was completed, I swapped the aliases between the two classes to ensure the data would be imported into the "Fleet-1" class. However, this didn't happen; everything imported back into the same "Fleet" class from which the data was exported.

    Could you please advise if there is a way to modify the content package files (such as the index, content, etc.) to ensure the data is imported into the new class rather than the existing one? OR is there some other way of doing it that I am unaware of?

    Thank you

  • I don't really have any suggestions on how to best handle this change or if replication can be used, sorry. Some scripted solution may sometimes be required to update the existing references. Your reseller may have experience from similar cases so it's worth discussing this with them.

  • How many records does this "fleet" have ? 

    If everything else fails, you can create a view, get the limit of the view up to cover the amount of objects you have in that class (to not need to repeat the operation) and export it with files. This will create files and a CSV file with every objects metadata in an excel table.

    Then, you can use this CSV file to get everything back in to the class you choose using M-Files Importer.

    And finally, repeat the process for other objects as well. I suppose this should work. Let me know if I miss something

Reply Children
No Data