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

Workflow state ID by alias


Resolves a single workflow state 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/workflowstates/itemidbyalias, or /structure/metadatastructure/itemidbyalias.


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

If multiple workflow states have the same alias then -1 will be returned.