Modify the state label in flow formatter and stepper component
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 06:30 AM
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.
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.
- 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.
- Notify that the state label in flow formatter is updated with the new label.
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.
- 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.
- 562 Views
0 REPLIES 0