M-Files API 23.11.13135.0
GetMetadataStructureItemIDByAlias Method
Vault Object : GetMetadataStructureItemIDByAlias Method
Metadata structure item type.
Alias to look for.
Description
Receives the ID of the metadata structure element with the specified alias.
Syntax
Visual Basic
Public Function GetMetadataStructureItemIDByAlias( _
   ByVal MetadataStructureItemType As MFMetadataStructureItem, _
   ByVal Alias As String, _
   Optional ByVal Unused As Boolean = True _
) As Long
Parameters
MetadataStructureItemType
ValueDescription
MFMetadataStructureItemClassClass
MFMetadataStructureItemClassGroupClass group.
MFMetadataStructureItemNamedACLNamed access control list.
MFMetadataStructureItemNoneNone.
MFMetadataStructureItemObjectTypeObject type. This can imply either a real object type or a value list.
MFMetadataStructureItemPropertyDefProperty definition.
MFMetadataStructureItemStateState.
MFMetadataStructureItemStateTransitionState transition.
MFMetadataStructureItemUserUser.
MFMetadataStructureItemUserGroupUser group.
MFMetadataStructureItemValueListValue list.
MFMetadataStructureItemValueListItemValue list item.
MFMetadataStructureItemVaultEventHandlerVault-specific event handler.
MFMetadataStructureItemViewDefView definition.
MFMetadataStructureItemWorkflowWorkflow.
Metadata structure item type.
Alias
Alias to look for.
Unused
Remarks

Returns -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.

See Also

Vault Object  | Vault Members