# WebCompanionTask

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.WebCompanionTask/

Struct for web companion task information information.

- **Full name:** `MFiles.WebCompanionTask`
- **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-app_id"></a>`app_id` | `string` | 1 | Web Companion App ID. |
| <a id="f-data"></a>`data` | `string` | 2 | Display string of the task data. |
| <a id="f-action_type"></a>`action_type` | [`WebCompanionActionType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.WebCompanionActionType/index.md) | 3 | Web Companion Action type. Values: `WEB_COMPANION_ACTION_TYPE_VIEW` (0), `WEB_COMPANION_ACTION_TYPE_EDIT` (1), `WEB_COMPANION_ACTION_TYPE_CHECKIN` (2), `WEB_COMPANION_ACTION_TYPE_SAVE_FILE_EXTENSION` (3), `WEB_COMPANION_ACTION_TYPE_CO_AUTHOR` (4). |

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

## Used by methods

- [IRPCWebCompanionTaskOperation.AddWebCompanionTask](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebCompanionTaskOperation/AddWebCompanionTask/index.md): Stores a task for M-Files Web Companion and returns the task ID.

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

## Used in fields

- [`AddWebCompanionTaskRequest.add_web_companion_request`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebCompanionTaskOperation/AddWebCompanionTask/index.md#request): The Web Companion Task information.
