GetMetadataStructureItemIdByAlias
Gets metadata structure item ID by alias.
Syntax
// Assumes shellUI has been initialized with IShellUI instance
const results =
await shellUI.Vault.VaultOperations.GetMetadataStructureItemIdByAlias({
item_type: 10000 /* Enum: MetadataStructureItem */,
alias: "<!< Alias to look for (without any ';').>",
});
Message
Name | Description | Type |
---|---|---|
item_type | Metadata structure item type. | MetadataStructureItem |
alias | Alias to look for (without any ';'). | string |
Return type
Name | Description | Type |
---|---|---|
id | Receives the ID, or -1 if a match is not found or if more than one item uses the specified alias. For named ACLs, -1000 is returned if a match is not found or if more than one item uses the specified alias. | number |
Example
{
"id": 0
}