In this article I’ll show an alternative way to take a look at the class hierarchy in M-Files by exporting all classes and their properties into a single CSV-file (Comma Separated Value) so that they can be reviewed in Excel.
Usually when you start to work on a project, you’ll want to get an overview first. In a M-File project with a lot of custom metadata, you probably want to know about the classes and their properties.
The first and most common way is certainly firing up the M-Files Admin and taking a look at all classes and properties.
While the admin interface works great for interactively exploring and editing the classes, there are also some drawbacks to this method.
One logical approach would be to export the metadata into a text format. That way you can get the following benefits:
An export to a Comma Separated Value File seems like a good choice, as it supports structured data and there are a lot of client tools to view and edit it.
Luckily M-Files comes with an Export List function that does exactly that, it allows the creation of a csv file with all classes as shown in the screenshot below.
The Admin interface allows exporting a list of all classes, by using the context-menu and clicking ‘Export List…’

The export creates a file whose content mirrors the columns that are shown on the right.
So for the hierarchical view, you only get a list of the object types and in the Flat View you’ll get at least a list of classes if you right-click ‘classes’ and choose ‘Export as List…’ - but that’s not what I wanted.
What I needed was a list of all classes and all their properties, like the following:
Class
Property
Type
Required
Agenda
Name or title
Text
True
Agenda
Event date
Date
False
…
Assignment
Name or title
Text
True
Assignment
Assignment description
Multiline Text
False
…
With a list like that, I can sit down with a client and really get to work and answer the important questions like:
while taking notes and making annotations.
To solve that problem I wrote a short commandline tool that exports the classes and their properties to a csv file.
You can download it here: MFilesExporter.zip
unpack the files into a folder
open the cmd prompt by pressing Win+R, type ‘cmd’ and hit enter.
change to the directory where you unpacked the files, eg. if you unpacked the files into the folder c:\users\test\documents type
cd c:\users\test\documents
Start it from the commandline:
MFilesExporter.exe -v “My Vault” -e

When you run it over ‘My Vault’ it produces this CSV File
The following screenshot shows the first few rows of the generated file:

If you find this tool useful or if you found a problem or have a feature suggestion, please feel free to leave a comment. Thank you!
I've started working on a commercial Software for exporting Documents from M-Files at:
https://vault-exporter.com
Note: Not all features are fixed yet, so if you want to join the discussion or you just want to be notified when it launches, please head over and join the mailing list to receive an update when it launches.