Overview
M-Files built-in Office Add-In allows inserting properties or looking up properties from related metadata, for example, from customers or projects. However, sometimes with templates, for instance, it might be desirable to look up properties from linked documents instead. You can refer to the example below, where lookup can be used with project, but with the referred document the option is unavailable.
Solutions
There are a few alternative solutions which can be used depending on the setup and desired result.
- On the Classic Desktop client there is a registry setting that can be applied to the client machine to allow lookup for the same object type.
HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Client\Common\<vault name>\MetadataSync\FollowObjectTypeLocalLookups = 1 (DWORD)
The registry setting can be used in M-Files Cloud also but you will need to make sure to have the registry key added for all vault names that it should be used in. - Adding the metadata directly to the current document's metadata. It's possible to hide these properties from the metadata card using Metadata Card Configuration, but they can still be seen from other places, like listing area.
- Creating a new object to store the values which must be using a non-document object type. This way the lookup can be used similarly to the above example with the project.
