Installing and Configuring M-Files Add-In For SharePoint Online
Installing and Configuring M-Files Add-In For SharePoint Online
M-Files Add-In for SharePoint Online enables you to access documents and information stored in M-Files directly from the
SharePoint user interface. This document explains how to take the add-in into use. The document is intended for M-Files
consultants and customer IT administrators who are setting up M-Files add-ins.
For a description of M-Files Add-In for SharePoint Online, refer to Solution Description - M-Files Add-in for SharePoint
Online.
Contents
1. Prerequisites ...................................................................................................................................................................... 1
1. Prerequisites
Before you continue, make sure that these requirements have been completed:
The first step is to add a few settings to any of the vaults on the server:
1. Open M-Files Admin and go to Advanced Vault Settings of a vault on the server.
2. Open the Configuration tab, expand M-Files Add-In Settings, and select Add Add-In.
3. Expand the newly created Add-In node.
4. In Add-In Type, select Microsoft SharePoint and Teams.
5. Edit the two settings presented below.
Cross-Origin Access:
Description The allowed cross-origin domain URLs for the host application. Separate values with a comma and do not add
a whitespace after the comma. Do not add a slash at the end of URL.
Description The allowed cross-frame domains URLs for the host application. Separate values with a comma and do not add
a whitespace after the comma. Do not add a subdirectory name (for example /vnext) or a slash to the end of
URL.
Specify the URLs of your M-Files vNext server and SharePoint domain.
Example https://cloudvault.company.com,https://company.sharepoint.com
value
Note: The settings are merged with the corresponding settings in other vaults on the server, unless each vault
has been designated a VaultDNS value under the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Server\Common\VaultDNSConfig
6. Click Save.
Note: If you are using M-Files February '20 Update or earlier, refer to Appendix A / Settings for Cross-Origin
Resource Sharing (CORS) of Setting Up the Backend for the New M-Files Web and Web-Based Add-Ins instead.
The add-in package that you downloaded from Solution Catalog contains the file mfiles-addin.sppkg.
Note: These instructions are based on the classic user interface of the SharePoint admin center.
https://<tenant name>.sharepoint.com/sites/devops/SitePages/Home.aspx
Example: https://mycompany.sharepoint.com/sites/AppCatalog/SitePages/Home.aspx or
https://mycompany.sharepoint.com/sites/devops/SitePages/Home.aspx
2. On the App Catalog home page, click Distribute apps for SharePoint.
3. Extract the add-in package and drag and drop the mfiles-addin.sppkg file to the listing area.
4. In the confirmation dialog, enable the option Make this solution available to all sites in the organization.
5. Click Deploy.
6. Make sure that the values for the solution are as listed here.
o Enabled: Yes
o Deployed: Yes
o Tenant Deployed: Yes
This section explains how to take the add-in into use on a SharePoint web page of your choice. To use the SharePoint add-
in, you must have created a page in a site. Refer to Create a team site in SharePoint, Create and use modern pages on a
SharePoint site.
A web part is a re-usable component that is added to a SharePoint page to perform a specific task.
1. With a web browser, open the page on which you want to include the add-in as a web part.
2. Click Edit.
3. Hover your mouse under the title area to bring about a line with a circled plus sign:
4. Click the plus sign, and in the drop-down menu, locate and select the M-Files Add-in web part.
5. Hover over the newly added web part, and in the toolbar on its left side, select Edit web part.
Note: The Save button saves your changes for you alone. With Publish, the changes are visible to all users.
6. Add-In Configuration
Server URI Mandatory setting. The address of your M-Files vNext server. Do not add slash at the end. The M-Files vNext
server must use the same connection protocol as the add-in host environment (HTTPS in most cases).
https://m-filescloudvault.mycompany.com or
https://m-filesweb.mycompany.com/vnext
Vault GUID Mandatory setting. The GUID of the vault to be used. All letters in the value must be given in upper case.
For example:
A68B0D63-3C0E-4E9C-AD8F-C6F33818BDE2
Note: This option is available in the add-in version 3.0 and later.
View URI Optional setting. The view in your vault to use as the landing page for the web part. If no value is set, the default
Recently Accessed by Me view is used. This setting is not in use if the Keyword value has already been defined.
The part /... represents further subviews. The view ID and subview IDs are all optional components of this value.
In other words, you can simply use the value views/ as well.
For example:
views/V133
or
views/V133/V136
For example:
Invoices
Note: This option is available in the add-in version 3.0 and later.
Editing Specifies whether editing via the add-in is allowed. If editing is enabled, add-in users can create new objects,
modify document content, and edit object metadata, including workflows and permissions.
Note: With the add-in versions from 2.0 to 4.0.0.2, to edit documents, download the file, edit it
locally, and finally use the add-in to replace the original file with the new one in SharePoint. With the
add-in version 4.0.0.4 (and later) and M-Files August '20 Update (20.6.9181.4) and later, you can edit
documents in Office for the web.
You can check the ID of a view in M-Files Desktop by right-clicking on it and selecting Properties. The ID is shown in the title
of the properties dialog. To check the GUID of your vault, right-click the vault in M-Files Admin and select Properties. The
GUID is shown under Unique ID in the Document Vault Properties dialog.
The steps in this section describe how you can make sure the cross-origin resource sharing (CORS) settings of the add-in are
in place by using the Developer Tools window in Google Chrome.
The SharePoint add-in supports Single Sign-On (SSO) with Microsoft Entra ID, AD FS authentication, and Okta
authentication. Refer to Setting Up OAuth 2.0 for the New M-Files Web and Web-Based Add-Ins for more information.
9. Change History
1.2 2019/04/16 Sections pertaining to the server settings of the add-in were updated (section 5).
1.3 2019/05/24 Added information about the editing option under server settings (section 5). Edited step 1 in section 0.
1.4 2019/07/04 Added additional configuration options under server settings (section 5).
1.6 2019/09/03 Updated the sections 3 and 4 to merge SharePoint and Teams add-in installation.
1.8 2019/09/30 Added the section 3.2.1 and modified the introductory text in section 3.
2.5 2020/04/06 Updated section 7. Added a table of contents. Added information about the connection protocol to
section 1.
2.8 2020/06/12 The description of the editing setting updated (section 6).
2.9 2020/10/26 The description of the View URI setting now mentions the Use Current View button.
3.0 2020/11/09 Further clarification to the description of the View URI setting.
3.3 2022/10/17 The new M-Files Web can now be set up in M-Files Admin. Updated the prerequisites section.
3.5 2023/05/18 M-Files for Microsoft Teams has replaced the previous Teams add-in. Removed the related instructions.
3.7 2024/06/10 Minor language fixes in the section about add-in configuration.
You may want to see the following content for additional information:
• Setting Up the Backend for the New M-Files Web and Web-Based Add-Ins
• Use App Catalog in Microsoft Docs.
• Create a team site in SharePoint in SharePoint help center.
• Create and use modern pages on a SharePoint site in SharePoint help center.
• Solution Description - M-Files Add-in for SharePoint Online
• Setting Up OAuth 2.0 for the New M-Files Web and Web-Based Add-Ins