Overview
Sometimes, there might be a need to change how many relationship levels of Office document properties are shown via the "Insert Property" selection in the M-Files tab of the Office application.
By default, M-Files uses a look-up depth of three levels. This can be changed with the client computer's registry setting described in this article. The article provides a use-case example of this registry setting.
Solution
The look-up depth level of properties can be adjusted with this client-computer registry setting:
| Key | HKEY_LOCAL_MACHINE\Software\Motive\M-Files\<version>\Client\Common\<vault connection name>\MetadataSync |
| Value name | MaxLookupDepth |
| Value type | REG_DWORD (32-bit value) |
| Description | The number of levels the user is allowed to drill down when inserting properties into Office documents. Default value = 3. |
| Value data | NNN (default value is 3) |
Setting or changing the registry setting takes effect immediately.
By default, this registry setting is not set at all. Then, M-Files can show properties with the level of three:
Word document "Test document 1" has the "Example Customer 1" object as the value for property Customer. M-Files Office add-in can access properties of the related "Test Document 3" object, as shown in the pictures below.
In case MaxLookupDepth is set to 1, the M-Files Office add-in can only access Office document's properties:
