Retrieving Life Cycle State Values
Life cycle state values are used in the navigation criteria for life cycle filters.
To retrieve all possible life cycle states from Windchill, submit a GET request to the following URL:
http://<Windchill Hostname>:<port>/Windchill/servlet/odata/PTC/GetAllStates()
In the returned code, the life cycle values are returned as items in a JSON array. Find the item where the Display value matches the value that you would select from the Life Cycle State field on the Configuration Specification tab of the Edit Filter window in Windchill MPMLink. For example, if the value you would select from the Life Cycle State field is Released, find the following item in the returned code:
{
"Value": "RELEASED",
"Display": "Released"
},
These are the values to be used for the LifecycleState element in the navigation criteria for your JSON payload.
Was this helpful?