# LookupWithMetadata

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

Single-value lookup datatype.

- **Full name:** `MFiles.LookupWithMetadata`
- **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-value_list_item_info"></a>`value_list_item_info` | [`ItemInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ItemInfo/index.md) | 1 | Item info (e.g. IDs (internal and external), GUID, flags, and name). |
| <a id="f-version"></a>`version` | [`ObjVerVersion`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjVerVersion/index.md) | 2 | The version number of the item. If eObjVerVersionTypeLatest, refers to the latest checked-in version of the item. |
| <a id="f-value_metadata"></a>`value_metadata` | [`TypedValueMetadata`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.TypedValueMetadata/index.md) | 3 | The metadata about the typed value. |

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

## Used in fields

- [`MultiSelectLookupWithMetadata.values`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MultiSelectLookupWithMetadata/index.md#f-values): Items.
- [`TypedValueUnionWithMetadata.lookup`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.TypedValueUnionWithMetadata/index.md#f-lookup): Lookup.
