Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback

Last updated on 15 June 2022

Admin
Unique Object Enforcement (Compliance Kit)

Overview

M-Files Compliance Kit includes a module for creating a unique running number for a specific set of properties and their values.

In some cases it may be good to know how to check what has been stored in Named Value Storage as the last value for a unique sequence. 

The format in which the data exists changed in CK version 21.12 and the example at the end illustrates the new structure.

Solution

I created a sample sequence that uses two select from list type properties ("Seq1" with ID 1268 and "Seq2" with ID 1269).  It stores the unique sequence to a text property ("UniqueSeq").

image.png

Then I created a couple of documents that use "Seq1" and "Seq2" properties defined, with different values in them. 

Then in M-Files Admin > Configurations > Custom Vault Data I added this in the Namespace Registry

Storage Type: MFConfigurationValue

Namespace: M-Files.ComplianceKit.UniqueSequences

image.png

Then in Named Values you can see the sequences and their values

For Compliance Kit versions 20.10 and earlier

image.png

It shows "SampleSeq[(1268-1)(1269-1)]" and "SampleSeq[(1268-2)(1269-2)]" respectively for each created document with different sequencing property values. The last value for the sequence is in Value.

The format is: Sequence name[(sequencing property ID-selected value list item ID)]. 

The part in round brackets repeats for all properties used in sequencing.

For Compliance Kit versions 21.12 and later

The sequence gets an identifier that is mapped to its name in the sequence_identifiers key. When you have the numerical ID of the sequence you want to look into, expand the key with the corresponding Name and in its Value you will see the latest value of the sequence.

image.png

Still need help?