logo

NJP

Service Operations Workspace - How to move a related list from "Related Records" tab?

New article articles in ServiceNow Community · Apr 09, 2025 · article

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

View original source

https://www.servicenow.com/community/service-operations-workspace/service-operations-workspace-how-to-move-a-related-list-from/ta-p/3232826