M-Files API 23.11.13135.0
GetMFilesURLForObjectOrFileEx Method
VaultObjectOperations Object : GetMFilesURLForObjectOrFileEx Method
The version of the object for which the URL is requested.
The version of the file for which the URL is requested. Specify -1 for internal file ID or non-specific ID for external file if the URL is requested for the object and not for a specific file of the object.
True if the URL should always point to a specific version of the object.
The type of the requested URL.
Description
Gets an M-Files URL for the specified object or file.
Syntax
Visual Basic
Public Function GetMFilesURLForObjectOrFileEx( _
   ByVal ObjVer As ObjVer, _
   ByVal FileVer As FileVer, _
   Optional ByVal SpecificVersion As Boolean = False, _
   Optional ByVal URLType As MFilesURLType = MFilesURLTypeShow _
) As String
Parameters
ObjVer
The version of the object for which the URL is requested.
FileVer
The version of the file for which the URL is requested. Specify -1 for internal file ID or non-specific ID for external file if the URL is requested for the object and not for a specific file of the object.
SpecificVersion
True if the URL should always point to a specific version of the object.
URLType
ValueDescription
MFilesURLTypeEditSpecifies an URL for performing the open-for-edit action for the target file.
MFilesURLTypeOpenSpecifies an URL for performing the default open action for the target file.
MFilesURLTypeShowSpecifies an URL for showing the object version. The URL does not open the target file.
MFilesURLTypeShowMetadataSpecifies an URL for showing the metadata card for the target object.
MFilesURLTypeViewSpecifies an URL for performing the read-only open action for the target file.
The type of the requested URL.
See Also

VaultObjectOperations Object  | VaultObjectOperations Members