Modify the state label in flow formatter and stepper component

M Shivani
Tera Guru

Process flow formatter provide graphical representation of the stages in process. Let's see how we can modify the labels in flow formatter in native view and in stepper component in workspace view. 

 

MShivani_0-1727872134200.png

MShivani_1-1727872191109.png

 

Configuration Steps : 

Ex : Modify the state label of change request : Assess to Peer Approval 

Modify the state label of Assess to Peer Approval 

To modify the label of state in flow formatter in native view follow the below steps:

  • Navigate to sys_choice table. Modify the label of Assess to Peer Approval. 
  • Notice that state field choice label has changed to Peer Approval.

             MShivani_2-1727872431279.png

  • To modify the state label in flow formatter, navigate to System UI -> Process Flow. Check for the label Assess of change_request table and modify the label to Peer Approval.

 

             MShivani_5-1727873209514.png

 

  • Notify that the state label in flow formatter is updated with the new label.

 

             MShivani_6-1727873340106.png

 

To modify the label of state in stepper component in workspace view follow the below steps: 

  • Navigate to the sttrm_state table and open the record of the state that you want to modify. 

 

            MShivani_7-1727874718467.png

           

  • State label field in the Assess record is not editable. To modify this use below script.        
          var gr = new GlideRecord("sttrm_state");   //to get records of states
          gr.get("9efc0801c343101035ae3f52c1d3ae48");    //sys_id of the required state record
          gr.state_label="Peer Approval";     //set the state label to Peer Approval
          gr.setWorkflow(false);
          gr.autoSysFields(false);
          gr.update(); 
 
  • Notice that the label of  state changes in stepper component. 
            MShivani_8-1727875454847.png

 

 

 

 

 

 

 

 
0 REPLIES 0