Skip to main content

GetMetadataStructureItemIdByGUID

Gets metadata structure item ID by GUID.

Syntax

// Assumes shellUI has been initialized with IShellUI instance
const results =
await shellUI.Vault.VaultOperations.GetMetadataStructureItemIdByGUID({
item_type: 10000 /* Enum: MetadataStructureItem */,
guid: "<!< GUID of the metadata structure item.>",
});

Message

NameDescriptionType
item_typeMetadata structure item type.MetadataStructureItem
guidGUID of the metadata structure item.string

Return type

NameDescriptionType
is_foundReceives true if the metadata structure item was found by GUID.bool
idReceives the id of the metadata structure item. Valid only if item is found.int32

Example

{
"is_found": false,
"id": 0
}