# ExternalRepositoryID

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

Item ID in external repository.

- **Full name:** `MFiles.ExternalRepositoryID`
- **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-connection"></a>`connection` | `string` | 1 | The external repository connection identifier. |
| <a id="f-item"></a>`item` | `string` | 2 | External ID within the scope of the connection to external system. |

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

## Used by methods

- [IRPCViews.GetExternalRepositoryIcons](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCViews/GetExternalRepositoryIcons/index.md): Gets icons that external repository connections provide for their views and objects.

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

## Used in fields

- [`ExternalRepositoryIcon.id`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalRepositoryIcon/index.md#f-id): The icon ID (external repository name and icon ID).
- [`ExternalView.id`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalView/index.md#f-id): The view ID in external repository.
- [`ExternalView.parent_id`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalView/index.md#f-parent_id): The view's parent ID in external repository. May be uninitialized if the external view does not have a parent.
- [`FolderInfoUnion.ExternalViewFolderData.external_repository_folder_id`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FolderInfoUnion/index.md#t-ExternalViewFolderData-external_repository_folder_id): The view id in external repository.
- [`ItemID.external_repository_id`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ItemID/index.md#f-external_repository_id): Used only for objects in external repositories (external connectors). Leave it unset for objects stored in the vault.
- [`GetExternalRepositoryIconsRequest.ids`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCViews/GetExternalRepositoryIcons/index.md#request): The icon IDs: the external repository connection and the icon's ID within it.
