# ObjID

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

Identifies an object: its object type and its ID within that type.

Object IDs are unique only within an object type: document 157 and project 157 are different
objects. Both parts are needed.

- **Full name:** `MFiles.ObjID`
- **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` | `int32` | 1 | The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID). |
| <a id="f-item_id"></a>`item_id` | [`ItemID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ItemID/index.md) | 2 | The ID of the object within its type, in `item_id.internal_id`. |

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

## Used by methods

[IRPCDataExport.GetPropertyValueHistory](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDataExport/GetPropertyValueHistory/index.md), [IRPCDocumentOperationsFileIOInternal.UploadFileCommit2](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDocumentOperationsFileIOInternal/UploadFileCommit2/index.md), [IRPCEvents.CreateEventAssignRequest](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEvents/CreateEventAssignRequest/index.md), [IRPCEvents.CreateEventCheckInRequest](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEvents/CreateEventCheckInRequest/index.md), [IRPCFileTransfer.FileUploadAttach](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCFileTransfer/FileUploadAttach/index.md), [IRPCIndexingDataSource.GetNextObjectsForIX](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/GetNextObjectsForIX/index.md), [IRPCIndexingDataSource.GetNextObjectsForMIX](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/GetNextObjectsForMIX/index.md), [IRPCIndexingDataSource.HasMoreObjectsForIX](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/HasMoreObjectsForIX/index.md), [IRPCIndexingDataSource.HasMoreObjectsForMetadataIX](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/HasMoreObjectsForMetadataIX/index.md), [IRPCIndexingDataSource2.GetObjectForIXById](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource2/GetObjectForIXById/index.md), [IRPCObjectOperations.AddOrUpdateExternalObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/AddOrUpdateExternalObject/index.md), [IRPCObjectOperations.CheckInExternalChanges](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/CheckInExternalChanges/index.md), [IRPCObjectOperations.CheckOut](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/CheckOut/index.md), [IRPCObjectOperations.CheckOutMultiple](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/CheckOutMultiple/index.md), [IRPCObjectOperations.CountObjectVersionsMatchingConditions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/CountObjectVersionsMatchingConditions/index.md), [IRPCObjectOperations.DemoteObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/DemoteObjects/index.md), [IRPCObjectOperations.DestroyObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/DestroyObject/index.md), [IRPCObjectOperations.DestroyObjectVersionsByConditions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/DestroyObjectVersionsByConditions/index.md), [IRPCObjectOperations.DestroyObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/DestroyObjects/index.md), [IRPCObjectOperations.FindEmailDuplicates](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/FindEmailDuplicates/index.md), [IRPCObjectOperations.FindFileDuplicates](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/FindFileDuplicates/index.md), [IRPCObjectOperations.FindFileDuplicatesOfObjVer](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/FindFileDuplicatesOfObjVer/index.md), [IRPCObjectOperations.FindFilesByChecksum](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/FindFilesByChecksum/index.md), [IRPCObjectOperations.FollowObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/FollowObject/index.md), [IRPCObjectOperations.GetDocEventSubscriptions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetDocEventSubscriptions/index.md), [IRPCObjectOperations.GetIdentitiesAndViewsOfMultipleUnmanagedReducedItems](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetIdentitiesAndViewsOfMultipleUnmanagedReducedItems/index.md), [IRPCObjectOperations.GetLatestObjectVersion](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetLatestObjectVersion/index.md), [IRPCObjectOperations.GetObjIDByGUID](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjIDByGUID/index.md), [IRPCObjectOperations.GetObjectGUID](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectGUID/index.md), [IRPCObjectOperations.GetObjectHistory](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectHistory/index.md), [IRPCObjectOperations.GetObjectHistory2](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectHistory2/index.md), [IRPCObjectOperations.GetObjectInfo](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectInfo/index.md), [IRPCObjectOperations.GetObjectInfoAndProperties](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectInfoAndProperties/index.md), [IRPCObjectOperations.GetObjectInfoAndPropertiesWithMetadata](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectInfoAndPropertiesWithMetadata/index.md), [IRPCObjectOperations.GetPromotedObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetPromotedObjects/index.md), [IRPCObjectOperations.RemoveFromRecentlyAccessed](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/RemoveFromRecentlyAccessed/index.md), [IRPCObjectOperations.RemoveObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/RemoveObject/index.md), [IRPCObjectOperations.RemoveObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/RemoveObjects/index.md), [IRPCObjectOperations.ResolveConflict](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/ResolveConflict/index.md), [IRPCObjectOperations.ResolveManagedIDOfPromotedObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/ResolveManagedIDOfPromotedObject/index.md), [IRPCObjectOperations.Rollback](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/Rollback/index.md), [IRPCObjectOperations.SetDocEventSubscriptions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/SetDocEventSubscriptions/index.md), [IRPCObjectOperations.SetExternalObjectID](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/SetExternalObjectID/index.md), [IRPCObjectOperations.SetFavoritesMultiple](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/SetFavoritesMultiple/index.md), [IRPCObjectOperations.SetObjectGUID](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/SetObjectGUID/index.md), [IRPCObjectOperations.SetObjectLevelProperty](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/SetObjectLevelProperty/index.md), [IRPCObjectOperations.SetTier](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/SetTier/index.md), [IRPCObjectOperations.UndeleteObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/UndeleteObject/index.md), [IRPCObjectOperations.UndeleteObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/UndeleteObjects/index.md), [IRPCObjectOperations.UploadFile](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/UploadFile/index.md), [IRPCObjectOperations.UploadFileCommit](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/UploadFileCommit/index.md), [IRPCObjectTypesAdmin.ChangeObjectTypeItemAutomaticPermissionsForObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectTypesAdmin/ChangeObjectTypeItemAutomaticPermissionsForObjects/index.md), [IRPCObjectTypesAdmin.ChangeObjectTypeItemIcon](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectTypesAdmin/ChangeObjectTypeItemIcon/index.md), [IRPCObjectTypesAdmin.ChangeObjectTypeItemPermissions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectTypesAdmin/ChangeObjectTypeItemPermissions/index.md), [IRPCObjectTypesAdmin.RemoveObjectTypeItem](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectTypesAdmin/RemoveObjectTypeItem/index.md), [IRPCSharedLinks.GetExternalLinks](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/GetExternalLinks/index.md), [IRPCSharedLinks.GetSharedLinksByObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/GetSharedLinksByObject/index.md), [IRPCValueLists.ChangeValueListItemPermissionsFromClient](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCValueLists/ChangeValueListItemPermissionsFromClient/index.md), [IRPCValueLists.GetValueListItemPermissions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCValueLists/GetValueListItemPermissions/index.md), [IRPCValueLists.RemoveOrDestroyTraditionalFolder](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCValueLists/RemoveOrDestroyTraditionalFolder/index.md), [IRPCValueLists.RemoveValueListItemFromClient](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCValueLists/RemoveValueListItemFromClient/index.md), [IRPCValueLists.RenameValueListItemFromClient](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCValueLists/RenameValueListItemFromClient/index.md), [IRPCValueLists.UndeleteValueListItem](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCValueLists/UndeleteValueListItem/index.md), [IRPCWOPIOperationsPublic.GetWOPIUserSession](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperationsPublic/GetWOPIUserSession/index.md)

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

## Used by messages

[`BasicDocInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocInfo/index.md), [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md), [`FileUploadWholeHeader`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FileUploadWholeHeader/index.md), [`ItemInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ItemInfo/index.md), [`ItemNames`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ItemNames/index.md), [`MigrateObjectParams`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MigrateObjectParams/index.md), [`ObjFileSourceUnion.UserDefinedTemplateData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjFileSourceUnion/index.md#t-UserDefinedTemplateData), [`ObjFileVer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjFileVer/index.md), [`ObjIDInfoForMIX`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjIDInfoForMIX/index.md), [`ObjIDPair`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjIDPair/index.md), [`ObjVer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjVer/index.md), [`ObjVerInfoForMIX`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjVerInfoForMIX/index.md), [`ObjectDataForIX`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectDataForIX/index.md), [`ObjectLevelInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectLevelInfo/index.md), [`ObjectOperationStatus`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectOperationStatus/index.md), [`ObjectSkippedIndexingState`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectSkippedIndexingState/index.md), [`ObjectsOrDelta`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectsOrDelta/index.md), [`RemoteRelationshipInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.RemoteRelationshipInfo/index.md), [`SearchResultsPageRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SearchResultsPageRequest/index.md), [`Template`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Template/index.md), [`WOPIContainer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WOPIContainer/index.md), [`WOPIContainerFile`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WOPIContainerFile/index.md)
