Please note that these samples and libraries are provided “as-is” and with no warranty, explicit or otherwise. You should ensure that the functionality of these libraries meet your requirements, and thoroughly test them, prior to using in any production scenarios. The items linked below are designed as teaching tools and may not be fully complete.

M-Files has published a number of public samples within our MFilesSamplesAndLibraries GitHub repository, which focus on achieving specific tasks using our public APIs or Frameworks.


The Visual Studio Template page contains a walkthrough of creating your first VAF application.

Sample applications

Title Source Details
Event Tracing GitHub Hooks into various Vault Application Framework lifecycle events and vault events and logs when they occur into the Windows Event Log. Can be used to identify which vault events occur in various situations.
Simple Configuration (VAF 2.0) GitHub Implements a simple VAF 2.0 configuration object which can be altered using the M-Files admin software. This implementation contains a fairly basic implementation to show the plumbing required to get the configuration up and running.
Complex Configuration (VAF 2.0) GitHub Implements a VAF 2.0 configuration object showing a variety of features that are supported, including custom dashboards, server-side validation, customising the configuration layout (e.g. using labels and help text), etc.
Upgrading VAF 2.0 to 2.1   A step-by-step example of how to upgrade a Vault Application Framework 2.0 application to use the Vault Application Framework 2.1 runtime and new features.