Search for previous version

Hi All

The user wants search documents of a previous version. Basically I would like to add the version number automatically to the file name. The version I am looking to add is in the picture below.

The problem is that I cannot find this property to add it to the name automatically, I can only see version label which the user has to input manually and this could cause errors. 

The user has requested to search for an old version of the document. When the users searches for a document only the latest version is shown. The reason behind this is that the new version is only allowed to be seen by a certain number of users and the older version can be viewed by all. Is this possible?

Thank you

  • Have you tried this in your search conditions? "look in the metadata of all versions"

  • by the way, if you insert the version number in the object name, the name will change acording the version number changes and you'll see only the last version number in the document name so this will not solve your problem.

    Using M-Files  Api you could check for MFBuiltInPropertyDefVersionLabel

    For example:

    Dim iNewVersionNumber

    iNewVersionNumber = PropertyValues.SearchForProperty ( MFBuiltInPropertyDefVersionLabel ).TypedValue.DisplayValue

    Ans save it so you can have this value available in any property.

  • To expand on this, by default most properties will not let you search historical versions. To enable this feature you need to locate the property(s) in the Admin tool and deselect 'Do not search for old object versions'