MFSettings¶
Columns¶
- ID int (primarykey, not null)
SQL Primary key
- Source_key varchar(20) (null)
type of setting
- Name varchar(50) (not null)
Setting name
- Description nvarchar(500)
Describing the setting
- Value SQL_Variant not null
Value of setting
- Enabled bit not null
set to 1 to enable setting
- Settings sets all the global parameters for the connector. Users can add additional settings for
special applications but standard settings should not be changed or deleted.
Settings the installer writes¶
The installer seeds the standard settings (script 10.201.script.MFsettings.migrate.sql; the two rows
marked 30.902 come from 30.902.script.MFSettings_Defaults.sql). It inserts a setting only when the
row is missing, so an upgrade keeps the values already in the table. MFVersion and App_Database
are the exception: they are overwritten from the installer on every install and upgrade.
Setting |
source_key |
Installer writes |
Afterwards |
|---|---|---|---|
SupportEmailRecipient |
value entered |
per instance; spMFSettingsForDBUpdate |
|
SupportEMailProfile |
value entered |
per instance; spMFSettingsForDBUpdate |
|
DefaultEMailCSS |
style sheet (30.902) |
may be edited |
|
MFInstallPath |
MF_Default |
value entered |
kept for compatibility, see below |
MFVersion |
MF_Default |
value entered, always |
maintained by spMFUpdateAssemblies |
VaultGUID |
MF_Default |
value entered |
corrected by the connector, see below |
ServerURL |
MF_Default |
value entered |
per instance; spMFSettingsForVaultUpdate |
LastMetadataStructureID |
MF_Default |
0 |
maintained by the connector; do not edit |
MFUserMessagesEnabled |
MF_Default |
0 |
spMFSettingsForDBUpdate |
MFilesInteropPath |
MF_Default |
empty |
maintained by spMFUpdateAssemblies |
App_Database |
App_Default |
database name, always |
do not edit |
App_DetailLogging |
App_Default |
value entered |
spMFSettingsForDBUpdate |
AssemblyInstallPath |
App_Default |
value entered |
per instance; spMFSettingsForDBUpdate |
AppUserRole |
App_Default |
value entered |
per instance; spMFSettingsForDBUpdate |
AppUser |
App_Default |
value entered |
per instance; spMFSettingsForDBUpdate |
DefaultUser |
App_Default |
1 |
may be edited, see below |
MFilesUpdatePending |
App_Default |
0 |
maintained by the connector; do not edit |
CreateUniqueClassIndexes |
App_Default |
1 (30.902) |
may be edited |
RootFolder |
Files_Default |
value entered |
per instance; spMFSettingsForDBUpdate |
FileTransferLocation |
Files_Default |
value entered |
per instance; spMFSettingsForDBUpdate |
The values that must be right for each instance are the e-mail recipient and profile, the assembly
folder, the application login and role, the export and import folders, and, when links to objects are
used, ServerURL. Change the vault connection itself in MFVaultSettings with
spMFSettingsForVaultUpdate.
Settings reference¶
- SupportEmailRecipient, SupportEMailProfile
Recipient and Database Mail profile for the connector’s automated support and error mails (
spMFLogError_EMail,spMFProcessBatch_mail).- DefaultEMailCSS
Style sheet used in the connector’s HTML e-mails.
- MFVersion
M-Files version.
spMFUpdateAssemblieswrites the version of the M-Files client it finds after a successful reload, or the value passed in@MFilesVersion. Informational; it no longer decides whereInterop.MFilesAPI.dllis loaded from.- VaultGUID
GUID of the vault, used to find the vault when connecting and to build object links. When it does not match a vault, the connector connects by vault name and
spMFGetMetadataStructureVersionID(run byspMFVaultConnectionTestandspMFDropAndUpdateMetadata) replaces it with the vault’s real GUID, so a placeholder left by the installer is corrected after the first connection test. Each database connected to a vault, including one for a copy of the vault, holds that vault’s own GUID. SeespMFSettingsForVaultUpdate.- ServerURL
Web address of M-Files (
https://and host, no trailing slash), used only to build web links and public shared links. Not used for the vault connection.- LastMetadataStructureID
Metadata structure version the connector last synchronized. Compared with the vault’s current version to decide whether
spMFDropAndUpdateMetadatamust run the structure synchronization.- MFUserMessagesEnabled
1 = enable the update of user messages in M-Files (read by
trMFProcessBatch_UserMessageandspMFSetup_Reporting).- App_DetailLogging
A value above 0 turns on detail logging to
MFProcessBatchDetail.- AssemblyInstallPath
Folder holding the connector assemblies, ending with a backslash.
spMFUpdateAssembliesloadsLaminin.Security.dll,LSConnectMFilesAPIWrapper.dlland itsXmlSerializersfrom it.- AppUser, AppUserRole
Login and database role of the connector application user.
- DefaultUser
1 = when SQL updates an object in M-Files, Created by and Last modified by are set to the vault user in
MFVaultSettings. 0 = a value in the class table’s column is kept, and the vault user is used only when the column is empty. It applies to all classes from the next update. Safe to edit. Fresh installs seed 1; an upgrade keeps the existing value.- MFilesUpdatePending
1 = the M-Files version on the server has changed and the assemblies must be reloaded before the next synchronization.
spMFCheckAndUpdateAssemblyVersion(also run by the M-Files update alert job) sets it;spMFUpdateAssembliesclears it after a successful reload. Added in Release 5.13.38.82.- MFilesInteropPath
Path of the
Interop.MFilesAPI.dllthatspMFUpdateAssembliesloaded at its last successful reload, for example the M-Files client’sBin\X64\Interop.MFilesAPI.dll. Informational; added in Release 5.13.38.82.- CreateUniqueClassIndexes
1 =
spMFCreateTablecreates unique indexes on new class tables.- RootFolder, FileTransferLocation
Root folder for files exported from M-Files (
spMFExportFiles), and the folder used to stage files imported from the database into M-Files.
MFInstallPath and MFilesInteropPath¶
MFInstallPath holds the M-Files installation path entered in the installer. Before Release
5.13.38.82 it was used to build the path to Interop.MFilesAPI.dll; it is now kept only for
backward compatibility and is not read to find the DLL. spMFUpdateAssemblies finds the DLL itself
(the M-Files client found in the registry first, then AssemblyInstallPath) and records the path it
used in MFilesInteropPath. Read MFilesInteropPath to see which DLL is loaded; neither setting
needs to be edited.
Changelog¶
Date |
Author |
Description |
2026-11-16 |
AC |
Document each setting and what the installer writes |
2016-8-22 |
lc |
Change primary key to include source_key |
2018-4-28 |
lc |
Add new settings for user messages and vault structure id |