Fusion Manage Read Workflow State

Fusion Manage Read Workflow State

matteo_pallaroni
Advocate Advocate
409 Views
3 Replies
Message 1 of 4

Fusion Manage Read Workflow State

matteo_pallaroni
Advocate
Advocate

Hi, any hint on simple scripting task:

Case 1: form the current item in workspace, how do I read the current workflow state (name or ID)? some: item.workflowActions."something..."

Case2: from the current item in workspace, how do I read the current workflow state of a Related item in Relationship Tab? some: item.relationships[i].item."something..."

I'm currently figuring out to update a custom property writing the State name with an action script on every workflow state change in order to reach it easily...I can't get clear examples from the Help

thx for taking care

 

0 Likes
Accepted solutions (1)
410 Views
3 Replies
Replies (3)
Message 2 of 4

Jennifer_Pitts
Contributor
Contributor
Accepted solution

item.descriptor.workflowState and item.relationships[i].item.descriptor.workflowState should do what you are wanting.

0 Likes
Message 3 of 4

matteo_pallaroni
Advocate
Advocate

Cool, I get what I was looking for; how did you get there?

0 Likes
Message 4 of 4

Jennifer_Pitts
Contributor
Contributor
If a piece of data is directly accessible on a record, you can typically access it the same way when linking from another record. You just have to start the call by telling it what record you're wanting the information from - item.relationships[i] - and then what information you're wanting - item.descriptor.workflowState.
0 Likes