IRPCObjectOperations.GetObjectInfoAndProperties

View as Markdown

Vault API / core write session or assertion returns metadata structure version

Gets the version information and the property values of one object, either its latest version or a specific version.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/GetObjectInfoAndProperties
HTTP (mf-http-grpc)POST /grpc/v1/get-object-info-and-properties
RequestGetObjectInfoAndPropertiesRequest
ResponseGetObjectInfoAndPropertiesResponse
Book and levelVault API, core
Kindwrite
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentno
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

With latest_version true the server returns the latest checked-in version; doc_version is ignored. With allow_checked_out also true, a caller who has the object checked out gets the checked-out version instead.

With latest_version false, doc_version must be a specific version (OBJ_VER_VERSION_TYPE_SPECIFIC); the OBJ_VER_VERSION_TYPE_LATEST marker fails with "Not found. Invalid object version: -1".

The call fails with "Not found." (0x8004000B) when the object or version does not exist, when the object ID has the wrong object type, and also when the caller is not allowed to read the object. To read several objects in one call, or to tolerate missing ones, use GetObjectVersionAndPropertiesOfMultipleObjects.

Request: GetObjectInfoAndPropertiesRequest

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: object type ID in type, object ID in item_id.internal_id.
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.
latest_versionboolTrue to read the latest checked-in version (or the caller's checked-out version, see allow_checked_out). False to read the version in doc_version.
allow_checked_outboolUsed with latest_version. True to get the checked-out version when the object is checked out to the caller. A version checked out to another user is never returned.
doc_versionObjVerVersionThe specific version to read when latest_version is false (OBJ_VER_VERSION_TYPE_SPECIFIC and internal_version). Ignored when latest_version is true.
doc_version.typeObjVerVersionTypeWhat internal_version means. OBJ_VER_VERSION_TYPE_SPECIFIC for a version number.Values: OBJ_VER_VERSION_TYPE_UNINITIALIZED (0), OBJ_VER_VERSION_TYPE_LATEST (1), OBJ_VER_VERSION_TYPE_ANY (2), OBJ_VER_VERSION_TYPE_ALL (3), OBJ_VER_VERSION_TYPE_SPECIFIC (4), OBJ_VER_VERSION_TYPE_VALUE_LIST_ITEM (6), OBJ_VER_VERSION_TYPE_OBJECT_LEVEL_REFERENCE (7).
doc_version.internal_versionint32The version number, starting from 1, when type is OBJ_VER_VERSION_TYPE_SPECIFIC. The server returns -1 with OBJ_VER_VERSION_TYPE_LATEST.
doc_version.external_repository_versionstringUsed only for objects in external repositories. Leave empty.
doc_version.external_repository_sort_keyint64Used only for objects in external repositories. Leave 0.

Response: GetObjectInfoAndPropertiesResponse

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

FieldTypeDescription
object_infoObjectVersionExThe version information of the returned version, including its files.
object_info.version_infoObjectVersionObject Version information.
object_info.version_info.versionObjVerVersionThe version number, as a specific version.
object_info.version_info.display_versionstringThe version label to show, if it differs from the version number; empty otherwise.
object_info.version_info.titlestringThe title (name) of the object in this version.
object_info.version_info.is_single_file_objectboolTrue if the object is a single-file document, which has exactly one file.
object_info.version_info.has_relationships_from_thisboolNote: this field is deprecated. True if relationships from this object version to one or more documents exist.
object_info.version_info.has_relationships_to_thisboolNote: this field is deprecated. True if relationships from one or more documents to this object version exist.
object_info.version_info.has_assignmentsboolTrue if relationships from one or more assignments to this object version exist.
object_info.version_info.last_modified_at_utcgoogle.protobuf.TimestampWhen the version was last modified, in UTC.
object_info.version_info.files[]repeated FileThe files of this version. Each file_ver can be passed to DownloadFile_Begin.
object_info.version_info.object_version_flagsOBJVERFLAGSBit flags that provide additional information on the object version.
object_info.version_info.class_idint32The class ID of the version.
object_info.version_info.version_guidstringThe GUID of this version.
object_info.version_info.base_properties[]repeated PropertyValueNot filled by the object read methods; read the property values with GetObjectVersionAndPropertiesOfMultipleObjects or GetProperties.
object_info.version_info.primary_fileFileIDFile ID of the primary file of a multi-file object, if the object is a multi-file object.
object_info.object_infoObjectLevelInfoObject-level information.
object_info.object_info.obj_idObjIDThe object type and ID of the object.
object_info.object_info.external_id_statusExtIDStatusThe status of this object's external ID.Values: EXT_IDSTATUS_UNKNOWN (0), EXT_IDSTATUS_EXTERNAL (1), EXT_IDSTATUS_INTERNAL (2), EXT_IDSTATUS_DISCARDED (3), EXT_IDSTATUS_NOT_AVAILABLE (4), EXT_IDSTATUS_EXTERNAL_REDUCED (5).
object_info.object_info.external_idstringThe external ID (display ID) of this object. unset means that the external ID is the same as the internal ID.
object_info.object_info.checked_out_versionObjVerVersionThe version that is checked out. Version number 0 if the object is not checked out.
object_info.object_info.checked_out_to_user_idint32The ID of the user who has the object checked out.
object_info.object_info.checked_out_to_user_namestringThe user name of the user who has the object checked out.
object_info.object_info.checked_out_to_host_namestringThe host name of the computer to which the object was checked out.
object_info.object_info.checked_out_at_utcgoogle.protobuf.TimestampThe timestamp of the moment the object was checked out.
object_info.object_info.checked_in_versionObjVerVersionThe latest checked-in version.
object_info.object_info.created_at_utcgoogle.protobuf.TimestampThe time when the object was created (same as the PROPERTYDEF_CREATED propertyvalue).
object_info.object_info.accessed_by_me_utcgoogle.protobuf.TimestampAccessed by me timestamp. Parallel operations may cause slight inconsistencies in the returned timestamp in rare cases and the precise value shouldn't be relied upon. The observed timestamp may even roll back.
object_info.object_info.guidstringThe object GUID, in braces. The same value as GetObjectGUID returns.
object_info.object_info.optionsITEMFLAGSBit flags that provide additional information on the object (e.g. is the object deleted or a stub).
object_info.object_info.original_vault_guidstringThe GUID of the vault in which the object was originally created.
object_info.object_info.original_vault_obj_idObjIDThe original objid in the vault in which the object was originally created.
object_info.object_info.associated_view_idItemIDIdentifies the view associated with this object if any.
object_info.object_info.external_repository_icon_idstringIf not null, identifies the icon of the object. Currently applicable only to unmanaged objects.
object_info.object_info.primary_view_idItemIDIf not null, identifies the primary view of the object that is also the default opening location of the object. Currently applicable only to unmanaged objects.
object_info.object_info.capabilitiesOBJECTCAPABILITYFLAGSBit flags that provide information on the object capabilities.
property_array[]repeated PropertyValueThe property values of the returned version.
property_array[].property_defint32The property definition ID, for example 0 for "Name or title" or 100 for "Class".
property_array[].valueTypedValueThe value. Its type must match the data type of the property definition.
property_array[].value.is_null_valueboolTrue if the value is empty. data is then unset.
property_array[].value.typeDatatypeThe data type of the value.
property_array[].value.dataTypedValueUnionThe value, in the member that matches type. Unset for an empty value.