# ExportStructureItem

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

A structure that specifies a single metadata structure item or a group selection of the item type.

- **Full name:** `MFiles.ExportStructureItem`
- **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-type"></a>`type` | [`MetadataStructureItem`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MetadataStructureItem/index.md) | 1 | Metadata structure item type. |
| <a id="f-group_selection"></a>`group_selection` | [`StructureItemGroup`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.StructureItemGroup/index.md) | 4 | The group selection inside of an item type |
| <a id="f-id"></a>`id` | `int32` | 2 | Metadata structure item ID. This is used if the group selection is not used. Otherwise it is MFBuiltInMetadataStructureItemIDAll. Should be used if guid is GUID_NULL. |
| <a id="f-guid"></a>`guid` | `string` | 3 | Metadata structure item GUID. If not GUID_NULL, should be used instead of lID. This is used e.g. with event handler items. |

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

## Used in fields

- [`ArchiveDocsJob.structure_items`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ArchiveDocsJob/index.md#f-structure_items): The metadata structure items which will be exported.
