IRPCObjectOperations.GetObjIDByGUID

View as Markdown

Vault API / core read session or assertion idempotent returns metadata structure version

Gets the object ID of the object that has the given object GUID.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/GetObjIDByGUID
HTTP (mf-http-grpc)POST /grpc/v1/get-obj-idby-guid
RequestGetObjIDByGUIDRequest
ResponseGetObjIDByGUIDResponse
Book and levelVault API, core
Kindread
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentyes
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

The GUID is accepted with or without braces and in any letter case. A string that is not a GUID fails with "The parameter is incorrect."; an unknown GUID with "Not found.".

Request: GetObjIDByGUIDRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
guidstringThe object GUID, as returned by GetObjectGUID or ObjectLevelInfo.guid.

Response: GetObjIDByGUIDResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
obj_idObjIDThe object type and ID of the object.
obj_id.typeint32The 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).
obj_id.item_idItemIDThe ID of the object within its type, in item_id.internal_id.
obj_id.item_id.internal_idint32The ID of the object or value list item.
obj_id.item_id.external_repository_idExternalRepositoryIDUsed only for objects in external repositories (external connectors). Leave it unset for objects stored in the vault.