# Web companion tasks (IRPCWebCompanionTaskOperation)

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

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

Passes "open this file in a desktop application" tasks from M-Files Web to M-Files Web Companion.

This interface provides ability to store task for web companion.

- **gRPC service:** `MFiles.IRPCWebCompanionTaskOperation`
- **Book and level:** [Server integration API](https://developer.m-files.com/APIs/gRPC-API/integration/index.md), specialized
- **Methods:** 2
- **Proto file:** [`mfiles/IRPCWebCompanionTaskOperation.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/IRPCWebCompanionTaskOperation.proto)

<a id="overview"></a>

## Overview

**For M-Files components only.** M-Files Web and M-Files Web Companion use this service to open
vault files in native desktop applications. Applications should not call it.

<a id="methods"></a>

## Methods

| Method | Summary | Facts |
|---|---|---|
| [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. | `internal: not for applications` `write` `session` |
| [GetWebCompanionTask](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebCompanionTaskOperation/GetWebCompanionTask/index.md) | Gets a task that M-Files Web stored for M-Files Web Companion. | `internal: not for applications` `write` `no session` |
