REST API: Find work flow field in item
Is there a way to determine, which field in an item type is the workflow field? I am writing a script, which generates a report showing the workflow state as text. I could not find a way to figure out which field is the workflow field from the item type information. Any ideas?
Comments
-
Hi Clemens,
this information should be in the documenttype table (workflowFieldId). Is your script a Velocity script? Or are you using REST API?
In Velocity you can use DocumentSource → getDocumentType → getWorkflowFieldIdI see that the REST API endpoint GET Itemtypes/{itemTypeId} is not returning this information :-( Here you can narrow your search and limit to LOOKUP field types.
I think we shoud submit a feature request for the cited endpoint
Best regards,
Alessandro
Alessandro
Systems Engineer
SICK AG0 -
Done →
Alessandro
Systems Engineer
SICK AG0 -
Hi Alessandro,
I am using the REST API. As you mention I cannot get the workflow field from the itemtype information. Feature request is the only hope.Cheers,
Clemens
0