Information on this page is only applicable to M-Files (server) version 12.0.6783.0 and higher.

Object class ID by alias


Resolves a single object class alias to its ID.

The alias should be URI-encoded. If resolving multiple aliases, or your alias contains the character \, then it is recommended to use /structure/classes/itemidbyalias, or /structure/metadatastructure/itemidbyalias.


Output: int
  Returns the ID of object class with the given alias, or -1 if none could be found.

If multiple object classes have the same alias then -1 will be returned.