# ExportedDataSet

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

Exported data set.

- **Full name:** `MFiles.ExportedDataSet`
- **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-id"></a>`id` | `int32` | 1 | Exported data set ID. |
| <a id="f-name"></a>`name` | `string` | 2 | The name of the data set. |
| <a id="f-object_types"></a>`object_types` | repeated [`ExportedDataObjectType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExportedDataObjectType/index.md) | 3 | Root nodes representing an object type. |
| <a id="f-options"></a>`options` | [`EXPORTEDDATASETFLAGS`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EXPORTEDDATASETFLAGS/index.md) | 4 | Data set flags. |
| <a id="f-schedule"></a>`schedule` | `bytes` | 5 | The schedule of this data set extraction (a serialized Task object of Task Scheduler). |
| <a id="f-database_connection_string"></a>`database_connection_string` | `string` | 6 | The database connection string. |
| <a id="f-run_as_user_id"></a>`run_as_user_id` | `int32` | 7 | "Run as" user id for the exported data set. |
| <a id="f-database_schema"></a>`database_schema` | [`ExportedDataSetDBSchema`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ExportedDataSetDBSchema/index.md) | 8 | The database schema. Values: `EXPORTED_DATA_SET_DBSCHEMA_GENERIC` (0). |

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

## Used by methods

- [IRPCExportedDataSets.GetExportedDataSet](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/GetExportedDataSet/index.md): Gets one exported data set by ID.
- [IRPCExportedDataSets.GetExportedDataSets](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/GetExportedDataSets/index.md): Gets all exported data sets of the vault.

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

## Used in fields

- [`ExportedDataSetAdmin.dataset`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExportedDataSetAdmin/index.md#f-dataset): The non-admin version of the struct.
- [`GetExportedDataSetResponse.pexpdataset`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/GetExportedDataSet/index.md#response): The exported data set. See [ExportedDataSet](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExportedDataSet/index.md).
- [`GetExportedDataSetsResponse.results`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCExportedDataSets/GetExportedDataSets/index.md#response): The exported data sets. See [ExportedDataSet](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExportedDataSet/index.md).
