Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

sujitha16
Kilo Patron

In this article, we will see how to move a related list from the "Related Records" tab for a change record. 

 

SujathaVM_0-1744190881458.png

 

Note: The process remains the same for other record types. Kindly check the application scope. 

 

➡️ Navigate to Script Includes [sys_script_include] and search for "SOWChangeRouteUtil" record. 

 

SujathaVM_2-1744193499684.png

 

➡️ Modify the function "getRelatedListConfig" to display the related lists on the main tab rather under "Related Records" tab. 

Note: By default, in change record the "Change Tasks" is visible on the main header. 

 

getRelatedListConfig: function(table, sysId) {
        var excludeLists = ["change_task.change_request","sysapproval_approver.sysapproval"];
        var relatedRecordTab = this.RELATED_RECORD_TAB;
        relatedRecordTab["exclusionList"] = excludeLists;
        var result = [{
            "label": gs.getMessage("Approvers"),
            "id": "sow_approvals",
            "exclusionList": null,
            "inclusionList": ["sysapproval_approver.sysapproval"]  //Related lists to show on the tab
        }];
        result.push(relatedRecordTab);

        return result;
    },

 

➡️ Navigate to "Scripted Extension Points" and search for the API Name "sn_sow_record.SOWRouteUtil". 

 

SujathaVM_3-1744193842893.png

➡️ Navigate to the "Implementations" related list and check if the record already exists. If not, open the "Extension Instances" in a new window, create a record and save it. 

 

SujathaVM_0-1744196665469.png

SujathaVM_1-1744196743302.png

 

Results:

 

➡️ Now navigate back to the Change record and check if the "Approvers" tab is displayed on the main screen. 

 

The related list is removed from the "Related Records" tab, 

 

SujathaVM_2-1744196899115.png

 

 

SujathaVM_3-1744196971796.png

Kindly hit "Helpful" if it was helpful for your needs!!!!

 

#ServiceNow #ServiceOperationsWorkspace #ServiceNowCommunity #HappyLearning

Comments
Rampriya-S
Kilo Sage

Very helpful article, thanks for sharing @sujitha16 

sujitha16
Kilo Patron

@Rampriya-S  Thank you for the consistent support from your end 🙂

computers
Giga Explorer

Great guide! The step-by-step instructions for customizing tabs in Service Operations Workspace are clear and practical. @sujitha16  info 

sujitha16
Kilo Patron

@computers  Glad to know it had helped you! Thank you 😊

Ashwin perumal
Tera Contributor

Very useful!!

ChielS
Mega Explorer

@sujitha16 Thank you for the explanation!

One question, when I moved something out of related records to its own view, it shows like your screenshot: Approvers -> Approvers (0)

ChielS_0-1776776836917.png

 

Do you know how I can configure it so it looks like the Change tasks tab? Without the left column (Approvers (0)).

Version history
Last update:
‎04-09-2025 06:30 AM
Updated by:
Contributors