Saltar al contendio prinicipal

How to Find a State's ObjectId

Advertencia

Esta página aún no se encuentra traducida al español.

Different procedures and automations may require you to indicate a workflow's or task's state ObjectIds. Here are some ways you can find a state's ObjectID.

First Steps

First, we must remember that a workflow state is an element within a collection. In the backend, Elements are also known as properties, and collections as property types. An element's data model is called COTProperty, therefore its identification code is referred to as ObjectId<COTProperty>.

Second, to find out which states are available in a workflow, go to the corresponding Create/Edit Workflow Settings Panel. Scroll down the settings panel to find the list of available states. The State list field indicates the collection the states belong to.

find states
In the area within the dotted-line box you can find a list of the available states.

Once you have the state names, you can search for their objectId in some of the following ways:

Search Tool

Use the search tool to find the corresponding property (element):

search states
Use the search tool to find the state and then open it to find all its details.

Database Tool

View the collection from the Database section:

database tool
Once you find the element in the collection, you can find its objectID embedded in the browser's address bar.

Collection

Enter the database admin section:

admin section
Select the corresponding collection that hosts the elements that represent the available states.

API Request

Use an API request to get all the task states:

GET /tasks/{ObjectId<COTTaskGroup>}/sm/smstate/allapi
Find the property field to get each state's ObjectId<COTProperty>.

SQL Database

Search through an SQL database:

sql
If you have proper access, you can search through the SQL database.

Go Back