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
| Name | Description | Type |
|---|---|---|
item_type | Metadata structure item type. | MetadataStructureItem |
guid | GUID of the metadata structure item. | string |
Return type
| Name | Description | Type |
|---|---|---|
is_found | Receives true if the metadata structure item was found by GUID. | bool |
id | Receives the id of the metadata structure item. Valid only if item is found. | int32 |
Example
{
"is_found": false,
"id": 0
}