# WOPIDiscovery

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

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

Struct for WOPI discovery.

- **Full name:** `MFiles.WOPIDiscovery`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-action_name"></a>`action_name` | `string` | 1 | The action name. |
| <a id="f-action_url"></a>`action_url` | `string` | 2 | The action URL. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCWOPIOperations.GetWOPIDiscoveryData](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperations/GetWOPIDiscoveryData/index.md): Gets the Office for the web actions (action name and URL) that the vault's WOPI configuration provides.

<a id="used-in-fields"></a>

## Used in fields

- [`GetWOPIDiscoveryDataResponse.values`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperations/GetWOPIDiscoveryData/index.md#response): One entry per action: `action_name` and the `action_url` template from the discovery data.
