# IRPCVaultExtensionMethods.ExecuteExtensionMethodEx

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Vault extension methods](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultExtensionMethods/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultExtensionMethods/ExecuteExtensionMethodEx/

Badges: `Vault API / standard` `write` `session` `returns metadata structure version`

Runs an extension method of a vault application. In new code use RunExtensionMethod.

- **Service:** [Vault extension methods](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultExtensionMethods/index.md) `MFiles.IRPCVaultExtensionMethods`
- **gRPC method:** `/MFiles.IRPCVaultExtensionMethods/ExecuteExtensionMethodEx`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/execute-extension-method-ex`
- **Request:** [`ExecuteExtensionMethodExRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultExtensionMethods/ExecuteExtensionMethodEx/index.md#request)
- **Response:** [`ExecuteExtensionMethodExResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultExtensionMethods/ExecuteExtensionMethodEx/index.md#response)
- **Book and level:** Vault API, standard
- **Kind:** write
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** yes (in the mfiles-metadata-version-bin trailer)
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Same as [RunExtensionMethod](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultExtensionMethods/RunExtensionMethod/index.md) with
  an application GUID and uncompressed input.
- `application`, `extension` and `method` are required; an empty or all-zero `application`
  fails with "The parameter is incorrect.".

<a id="request"></a>

## Request: ExecuteExtensionMethodExRequest

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

| Field | Type | Description |
|---|---|---|
| `application` | `string` | The GUID of the vault application. |
| `extension` | `string` | The identifier of the application's extension object. |
| `instance` | `string` | The identifier of the extension object instance. |
| `method` | `string` | The name of the method. |
| `input` | `string` | The input passed to the method. |

<a id="response"></a>

## Response: ExecuteExtensionMethodExResponse

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

| Field | Type | Description |
|---|---|---|
| `output` | `string` | The output of the method. |

<a id="related"></a>

## Related methods

- [RunExtensionMethod](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultExtensionMethods/RunExtensionMethod/index.md): Runs a vault extension method, either an event handler method or an application extension method, with optional compression of the input and output.
- [ExecuteExtensionMethod](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultExtensionMethods/ExecuteExtensionMethod/index.md): Runs an event handler method by name. In new code use RunExtensionMethod.
