Overview
In some cases, you may need to archive objects of other object types. You can control the object type that can be archived with the instructions below.
Details
You can archive old versions of documents that you no longer need according to the instructions from the User Guide: Archiving Old Versions.
By default, the archiving functionality is available only for document objects, however.
With the instructions below, you can enable that for other object types with the same archiving approach.
Note: The archiving feature can target only one object type at a time so if you change its type you can no longer archive documents. If you change the type allowed for archiving and you want to archive documents once more, you have to switch it back.
Products and versions
All supported M-Files versions.
Solution
To change the object type that can be archived:
- Go to the Advanced Vault Settings > Configuration > Content Replication and Archiving > Exporting, and select the Advanced tab.
- Enter the JSON below with the ID of the object type you want to enable archiving for.
This hidden option is not shown in the Configuration tab before entering the JSON. - Perform the archiving in the usual way.
Note that the user interface will still talk about "documents", but the objects of the object type you configured will be archived.
{
"archiveOldVersionsObjectType": <ID of the object type>
}
In the example image below, the object type with ID 183 has been configured as the target object type for archiving.
Alternatively, if you would rather edit the top level JSON in the "Content Replication and Archiving" section, it would look like this:
{
"replication": {
"exporting": {
"archiveOldVersionsObjectType": <ID of the object type>
}
}
}
No restarts are needed.
