Client scripts and UI extension applications (IRPCClientScript)

View as Markdown

Lists, installs, enables, disables, licenses and removes the applications of the vault: vault applications (server side) and UI extension applications (client side), and downloads their packages and files.

gRPC serviceMFiles.IRPCClientScript
Book and levelVault API, standard
Methods16
Proto filemfiles/IRPCClientScript.proto

Overview

An application is a ZIP package with an application definition (appdef.xml). Its GUID identifies it in every call. ExtApplication describes it; type tells a vault application (EXT_APPLICATION_TYPE_SERVER) from a UI extension application (EXT_APPLICATION_TYPE_CLIENT), and platforms (a bit mask of ExtApplicationPlatform values) the clients it supports.

Reading:

Managing (requires the vault right change_metadata_structure, see VaultAccess; these are the operations of M-Files Admin):

Enabled state. ExtApplication.is_enabled is the default enabled state for clients, not whether a vault application runs. A disabled vault application can show is_enabled true; ask GetScriptApplicationServerEnable.

Methods

MethodSummaryFacts
DownloadScriptApplicationNot implemented: fails with "Not implemented.".write session
DownloadScriptApplicationFile_BeginStarts downloading the package (ZIP file) of an application and returns its first block.read session idempotent
DownloadScriptApplicationFile_ReadBlockReads the next block of an application download.read session idempotent
GetClientScriptApplicationsDetailsLists the enabled UI extension applications of the new M-Files clients with their modules, files and dashboards.read session idempotent
GetDownloadSessionIdOfScriptApplicationFileStarts downloading one file of a UI extension application of the new M-Files clients.read session idempotent
GetScriptApplicationGets one application by its GUID.write session
GetScriptApplicationServerEnableTells whether an application is enabled in the vault.write session
GetScriptApplicationsExLists the applications installed in the vault, optionally only one type or platform.read session idempotent
GetVaultApplicationLicenseNot implemented: always returns an empty license.write session
GetVaultApplicationLicenseStatusGets the license status of a vault application, or checks a license before installing it.read session idempotent
ReloadApplicationRestarts a hot-swappable vault application on all servers of the vault.write session
RemoveScriptApplicationUninstalls an application from the vault.write session
SetScriptApplicationServerEnableEnables or disables an application in the vault.write session
SetVaultApplicationLicenseInstalls or removes the license of a vault application.write session idempotent
UploadScriptApplicationFileBlockUploads and installs an application package. Same as UploadScriptApplicationFileBlockEx without the list of outdated dependencies.write session idempotent
UploadScriptApplicationFileBlockExUploads an application package block by block and, with the last block, installs the application.write session idempotent