Skip to main content

GetObjectHistory2

Gets document history (in ascending order).

Syntax

// Assumes shellUI has been initialized with IShellUI instance
const results = await shellUI.Vault.ObjectOperations.GetObjectHistory2({
obj_id: {
type: 0,
item_id: {
internal_id: 0,
external_repository_id: {
connection: "<connection>",
item: "<item>",
},
},
},
});

Message

NameDescriptionType
obj_idThe object ID as JSON. (represented by MF_ObjID struct.)ObjID

Return type

NameDescriptionType
resultsResults in ascending order as JSON array.ObjectVersionEx[]

Example

{
"results": [] /* Array of ObjectVersionEx */
}