Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/System setup and customization/Vault configuration and customization/M-Files Compliance Kit

CK: Trigger refresh to managed property value using vault extension

Last updated on 31 March 2021

Admin
Managed Properties (Compliance Kit)

Overview


Sometimes managed properties need to be triggered from outside the containing object. 

Solution


Here is a quick sample for how to use a vault extension method to trigger automatic (re)calculation for a managed property.

NOTE: Before deploying anything, please test and adjust the sample as needed. 

I used Compliance Kit Managed Properties (which is part of the free configuration accelerators license) to create a simple automatic value for a document, "{Person} document". This outputs that dynamic value for property "Automatic property value":

 image.png
image.png
Now, I want to update this value whenever the Person name changes. For this I used the Vault Extension Method that is described in the Compliance Kit Configuration Manual (see Knowledge Base). Note that I have not limited this to any object type! So, this needs more filters before actual use.

 image.png

Now what happens is when I change Person object, it will search for anything pointing to it and ask the vault extension to perform recalculation for that specific object.
 

Still need help?

On this page