Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

Resolving Deep Nested Properties in Office Document's Metadata

Last updated on 6 November 2023

Admin
Microsoft Office Add-ins

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:

KeyHKEY_LOCAL_MACHINE\Software\Motive\M-Files\<version>\Client\Common\<vault connection name>\MetadataSync
Value nameMaxLookupDepth
Value typeREG_DWORD (32-bit value)
DescriptionThe 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.image.png

image.png

In case MaxLookupDepth is set to 1, the M-Files Office add-in can only access Office document's properties:

image.png

Still need help?

On this page