IRPCVaultExtensionMethods.RunExtensionMethod

View as Markdown

Vault API / standard write session returns metadata structure version

Runs a vault extension method, either an event handler method or an application extension method, with optional compression of the input and output.

ServiceVault extension methods MFiles.IRPCVaultExtensionMethods
gRPC method/MFiles.IRPCVaultExtensionMethods/RunExtensionMethod
HTTP (mf-http-grpc)POST /grpc/v1/run-extension-method
RequestRunExtensionMethodRequest
ResponseRunExtensionMethodResponse
Book and levelVault API, standard
Kindwrite
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentno
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

Request: RunExtensionMethodRequest

Request data for running an extension method.

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
application_idstringThe GUID of the vault application. All zeros or empty for an event handler method.
extensionstringThe identifier of the application's extension object; empty for an event handler method.
instancestringThe identifier of the extension object instance; empty for an event handler method.
method_namestringThe name of the method. For an event handler method, the name of the VaultExtensionMethod event handler.
inputstringThe input as text. Leave empty when compressed_input is used.
compressed_inputbytesThe compressed input: the 4-byte little-endian length of the UTF-8 text including a terminating zero byte, followed by the zlib stream of that text. Leave empty to use input.

Response: RunExtensionMethodResponse

The request data for RunExtensionMethod method.

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
outputstringThe output as text, when the input was not compressed.
compressed_outputbytesWhen compressed_input was used, the output in the same compressed format: a 4-byte little-endian length, then the zlib stream of the UTF-8 text with a terminating zero byte.