Skip to main content

GetWorkflowStateHistory

Gets the workflow state history of an object.

Syntax

// Assumes shellUI has been initialized with IShellUI instance
const results = await shellUI.Vault.ObjectOperations.GetWorkflowStateHistory({
obj_ver: {
obj_id: {
type: 0,
item_id: {
internal_id: 0,
external_repository_id: {
connection: "<!< The external repository connection identifier.>",
item: "<item>",
},
},
},
version: {
type: 7 /* Enum: ObjVerVersionType */,
internal_version: 0,
external_repository_version: "<external_repository_version>",
external_repository_sort_key: 0,
},
},
max_history_states_to_return: 0,
});

Message

NameDescriptionType
obj_verThe object version.ObjVer
max_history_states_to_returnThe maximum number of states to return. Zero indicates no limit.number

Return type

NameDescriptionType
history_statesObject version and its property values.ObjVerWithProperties[]
more_history_states_availableTrue if there are more history states available.boolean

Example

{
"history_states": [] /* Array of ObjVerWithProperties */,
"more_history_states_available": false
}