How Stages are updated on RITM Stage Field from Flow Designer Flow Stages.

Chinmay Tawade1
Tera Guru

Hi Everyone,

 

I am trying to build custom RITM Stage Field Workflow Formatter.
For that I need to understand how Flow Stages are updated from Flow designer on Ritm Stage Field.

I am able to create formatter of my own and update the stage status whenever needed, but the thing is when we add a stage which is in Stage Sets but not on Choices of Stage field of RITM, the updated stage turns blue.

So I need to understand how the Flow Stages from Flow Designer gets updated on RITM Stage Field.

 

ChinmayTawade1_0-1686050610240.png

 

7 REPLIES 7

Hello,

 

If my answer helped you please mark it as correct.

 

Thanks.

Hi,

Yes this BR seems to be responsible for flow stage updation on RITM.
Do you have any idea how getFlowStages(flowName) work? I searched for documentations but no luck.

 

This below line is from - sc_req_item_stageGetChoices BR

 var flowStages = GlideappCalculationHelper.getFlowStages(current.cat_item.flow_designer_flow);
 
Thanks!

Hello,

 

In the below article search for FlowAPI - getFlowStages(String scopedFlowName)

 

Saurav11_0-1686136001595.png

 

 

https://docs.servicenow.com/bundle/utah-api-reference/page/app-store/dev_portal/API_reference/Script...

 

Please mark my answer as correct based on Impact.