# IRPCExportedDataSets.TriggerExportedDataSetRefresh

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) > [Exported data sets](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/index.md)

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

Badges: `Vault API / standard` `write` `session` `idempotent`

Asks for an export of the data set to start now, outside its schedule.

- **Service:** [Exported data sets](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/index.md) `MFiles.IRPCExportedDataSets`
- **gRPC method:** `/MFiles.IRPCExportedDataSets/TriggerExportedDataSetRefresh`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/trigger-exported-data-set-refresh`
- **Request:** [`TriggerExportedDataSetRefreshRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/TriggerExportedDataSetRefresh/index.md#request)
- **Response:** [`TriggerExportedDataSetRefreshResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/TriggerExportedDataSetRefresh/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:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

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

## Remarks

- Requires the vault right `trigger_data_export` and the Reporting module in the license.
- Fails if the data set is disabled, and with "Not found." for an unknown ID.
- The call only records the time of the request (returned as `last_manual_execution_triggered`
  by [GetDataSetAuxiliaryExecutionControlState](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/GetDataSetAuxiliaryExecutionControlState/index.md));
  the export process notices it and runs the export. Follow the progress with
  [GetDataSetExportingStatusBasic](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/GetDataSetExportingStatusBasic/index.md).
- Cancel a running export with the administration service
  ([CancelExportedDataSetExecution](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSetsAdmin/CancelExportedDataSetExecution/index.md)).

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

## Request: TriggerExportedDataSetRefreshRequest

> 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 |
|---|---|---|
| `id` | `int32` | The ID of the data set to export. |

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

## Response: TriggerExportedDataSetRefreshResponse

No fields.

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

## Related methods

- [GetDataSetAuxiliaryExecutionControlState](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/GetDataSetAuxiliaryExecutionControlState/index.md): Gets when an export of the data set was last requested or cancelled by hand. Used by the export process.
- [GetDataSetExportingStatusBasic](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/GetDataSetExportingStatusBasic/index.md): Tells whether a data set is being exported right now and when its export status last changed.
- [IRPCExportedDataSetsAdmin.CancelExportedDataSetExecution](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSetsAdmin/CancelExportedDataSetExecution/index.md): Requests that a running export of an exported data set stops.
