You can use M-Files for sharing documents with interested parties through direct web links. This feature makes it possible to, for example, provide a company web site with a direct link to a price list in M-Files. The link can be made to always refer to the latest version of the document, to be able to provide up-to-date information at all times. The link works in the same way as any ordinary web URL.
Normally, M-Files Web always requires a login name and a password to be entered. However, if the system is used for publishing, it may often be necessary to allow users to view documents without entering any credentials. To enable this, M-Files can be set to use a predetermined login account with, for example, read permissions for certain documents.
In order to enable document-specific publishing via a web link, the following steps have to be taken:
For instructions, see Creating a Login Account for Publishing below.
For instructions, see Assigning the Login Account to the Desired Vault below.
For instructions, see Providing the User with Read Permissions to Published Documents below.
For instructions, see Enabling the Login Account to Log In Automatically below.
For instructions, see Creating Direct Web Links below.
To make it possible to view published documents without logging in, M-Files must be set to log in automatically through M-Files Web. This way, published documents can be viewed without entering a username and password.
Before you begin, make sure M-Files Web is configured properly. For more information, refer to Web and Mobile Access. To ensure sufficient permissions, an unlimited read-only license is required.
Once automatic login is enabled, you can create direct web links between, for example, the company web site and document files. The opening page, openfile.aspx, can be assigned the following parameters:
Parameter | Description |
---|---|
objtype | Object type ID of the object to which the file to be opened belongs. This parameter is required. You can see the list of object type IDs by completing the first four steps of the Creating a New Object Type task. |
docid | ID of the document containing the file to be opened. This parameter is required. |
docver | Version of the document containing the file to be opened. This parameter is not required. If this parameter is not used, the link always refers to the latest version of the document. |
fileid | ID of the file to be opened. This parameter is not required unless the document containing the file is a multi-file document. |
filever | File version. |
showopendialog | This parameter specifies whether or not the web browser displays an opening dialog. If the value assigned to this parameter is 0, the dialog is not displayed. |
As described above, you can provide your web site with a link that refers directly to a document. Below are examples of such web links. Replace <server> with the web address of your own server.
http://<server>/openfile.aspx?objtype=0&docid=71
http://<server>/openfile.aspx?objtype=0&docid=71&docver=7
http://<server>/openfile.aspx?objtype=0&docid=71&docver=7&fileid=71
http://<server>/openfile.aspx?objtype=0&docid=71&showopendialog=0
In addition, you can use Share via OneDrive links for version-specific publication of individual documents.