Stages and Flow Designer

CMartinTN
Tera Expert

I have a custom table that has a reference field for the associated RITM. In Flow Designer, I am trying to update the Stage of the RITM in a Flow that is triggered by a change in the custom table. Changing the value of the Stage field in the RITM doesn't advance the Stage icons for the RITM. Adding a Stage in the actual Flow changes a workflow field in the custom table rather than the RITM record. Any advice on how I can progress the Stage icons for the RITM as a result of either the change to the Stage field in the RITM or as a result of a Stage in the Flow that is triggered by something other than the RITM?

1 ACCEPTED SOLUTION

CMartinTN
Tera Expert

Thank you Soeren but we have multiple flows triggered on table changes and it would take a long time to merge them into one flow. That is good information for future development. I did find a way to make it work. I created my own actions to change the stage to various values. I found the Stage State table in another forum post and that proved to be the answer for me. I scripted the Stage Status field in the Stage State table and it worked like a charm. You just identify the ID = requested item, Field = stage, Table = sc_req_item, and then script the Stage Status. 

 

View solution in original post

5 REPLIES 5

CMartinTN
Tera Expert

Here's an example of the Action to set the stage to Waiting for Approval:

I am attaching screen shots of the Inputs, Look Up Record step, and Update Record Step. The Stage Status is scripted. Here's the script:

 

return '[{"stage":{"label":"Waiting on Approval","value":"waiting_on_approval","duration":"PT0S","expected":true,"order":0,"statusLabels":{"pending":"Pending - has not started","error":"Error","complete":"Completed","cancelled":"Cancelled","in_progress":"In progress","skipped":"Skipped"}},"status":"in_progress"}]';