<h2>Set up adding records to a related list</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Set up adding records to a related list" /><meta name="abstract" content="Create an Add button so agents can add records to a Related List." /><meta name="description" content="Create an Add button so agents can add records to a Related List." /><meta name="DC.relation" scheme="URI" content="../../../administer/workspace/task/configure-related-lists.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/navigation-and-ui/concept/c_NavigationAndTheUserInterface.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/configure-uis-and-portals.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/configurable-workspace/concept/workspace-landing-page.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/workspace/concept/workspace-configuration.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/workspace/concept/record-view.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-08-01" /><meta name="page-type" content="workspace-legacy" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="set-up-adding-records-to-related-lists" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Set up adding records to a related list</title></head><body id="set-up-adding-records-to-related-lists"> <div class="breadcrumb"><a class="link" href="../../../administer/navigation-and-ui/concept/c_NavigationAndTheUserInterface.html" title="Interact with ServiceNow AI Platform applications and data in the way that works best for you.">Configure user experiences</a> > <a class="link" href="../../../administer/general/concept/configure-uis-and-portals.html" title="Customize your interface to create an efficient, unique experience for users and customers.">Configure UIs and portals</a> > <a class="link" href="../../../administer/configurable-workspace/concept/workspace-landing-page.html" title="The Workspace UI provides a new way of working that improves agent efficiency for a better customer experience.">Workspace UI</a> > <a class="link" href="../../../administer/workspace/concept/workspace-configuration.html" title="Set up legacy workspace for agents, so that they can find, work on, and resolve issues efficiently.">Setting up your legacy workspace</a> > <a class="link" href="../../../administer/workspace/concept/record-view.html" title="Set up the components in the Workspace Record View to optimize the user interface where agents do most of their work.">Setting up Record View in legacy workspace</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Set up adding records to a related list</h1> <div class="body taskbody"><p class="shortdesc">Create an <span class="ph uicontrol">Add</span> button so agents can add records to a Related List.</p> <div class="section prereq p"> <p class="p">Role required: workspace_admin</p> </div> <div class="section context" id="set-up-adding-records-to-related-lists__context_bnw_byl_kjb"> <p class="p">You can create an <span class="ph uicontrol">Add</span> button that enables agents to add records to lists. This functionality supports one-to-many (o2m) and many-to-many (m2m) tables. In the following example, we use the task_location tables and create the <span class="ph uicontrol">Add</span> button for incidents. So, when you open a incident, you can click the new related list, <span class="ph uicontrol">Affected Locations</span>, to see incidents (tasks) that occurred at the same location. Many incidents might occur at one location, and one incident might involve many locations.</p> <p class="p">The general procedure is to add the Related List, <span class="ph uicontrol">Affected Locations</span> that is associated with the many-to-many table, task_location, and then create a Workspace Action to create the <span class="ph uicontrol">Add</span> button that adds, in our example, locations to an incident.</p> <p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_g3m_5xg_kjb" src="../image/related-list-add-button.jpg" alt="Related List Add button" /></p> <p class="p">When an agent clicks <span class="ph uicontrol">Add</span>, a modal opens showing the agent locations where the incident can be added.</p> <p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_mg5_ggx_njb" src="../image/modal-locations.png" height="294" width="438" alt="Modal for locations." /></p> <p class="p">To understand the following example, enter task_location.list in the <span class="ph uicontrol">Filter Navigator</span> to show the task_location table.</p> <p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_f4y_bbx_njb" src="../image/location-task-table.png" height="132" width="659" alt="Location-task table." /></p> <p class="p">The table shows the associations between the location (cmn_location) and task (task) tables. In the example, there are none.</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Add a new Related List, <span class="ph uicontrol">Affected Locations</span>, which opens with incident records.</span> <ol type="a" class="ol substeps" id="set-up-adding-records-to-related-lists__substeps_p1g_nbx_njb"><li class="li substep substepexpand"> <span class="ph cmd">Open an incident by navigating to <span class="ph menucascade"><span class="ph uicontrol">Incident</span> > <span class="ph uicontrol">Open</span></span> and click an incident.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Confirm that you're in the Workspace View by clicking your profile icon (<img class="image icon" id="set-up-adding-records-to-related-lists__image_jh3_ccx_njb" src="../../../common/image/icon-menu.png" alt="menu icon" />), selecting <span class="ph uicontrol">Configure Page</span>, and then selecting <span class="ph uicontrol">Form Layout</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Set up a related list for the Incident table by clicking your profile icon (<img class="image icon" id="set-up-adding-records-to-related-lists__image_ehg_hsm_vlb" src="../../../common/image/icon-menu.png" alt="menu icon" />), selecting <span class="ph uicontrol">Configure Page</span>, and then selecting <span class="ph uicontrol">Related Lists</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">On the Configuring related lists on Incident form, in <span class="ph uicontrol">View name</span>, select <span class="ph uicontrol">Workspace</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Affected Locations</span> and use the arrows to move it into the <span class="ph uicontrol">Selected</span> column.</span> <div class="itemgroup info">The task_location value is called <span class="ph uicontrol">Affected Locations</span>. </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">Save</span>.</span> <div class="itemgroup info">You've added <span class="ph uicontrol">Affected Locations</span> as a related list for all incident records.<p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_qhs_fdx_njb" src="../image/affected-location-related-list-no-add.png" height="148" width="793" alt="Affected locations." /></p> </div> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Use a Workspace Action to create an <span class="ph uicontrol">Add</span> button that enables agents to add locations to an incident.</span> <ol type="a" class="ol substeps" id="set-up-adding-records-to-related-lists__substeps_qnv_4dx_njb"><li class="li substep substepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">Workspace Experience</span> > <span class="ph uicontrol">Actions & Components</span> > <span class="ph uicontrol">Related List Actions</span></span> and click <span class="ph uicontrol">New</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">On the form, fill in the fields.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="set-up-adding-records-to-related-lists__table_awd_vvl_kjb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Action Assignment form</span></caption><colgroup><col style="width:27.47252747252747%" /><col style="width:72.52747252747253%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d78147e281">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d78147e284">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Action label</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Label that appears on the button in the Related Lists area. Make this Add. In the previous image, the <span class="ph uicontrol">Add</span> button will appear next to the <span class="ph uicontrol">New</span> button.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Action name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">The name for this record that appears in the list of related list actions, <span class="ph menucascade"><span class="ph uicontrol">Workspace Experience</span> > <span class="ph uicontrol">Actions & Components</span> > <span class="ph uicontrol">Related List Actions</span></span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Implemented as</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Select <span class="ph uicontrol">UI Component</span> because you are creating a button.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Specify UI component</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Select <span class="ph uicontrol">sn-multi-record-associator</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Button type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Select <span class="ph uicontrol">Primary</span>. Primary buttons are green. Secondary buttons are gray.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Record Selection Required</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Checkbox to make record selection required.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Tooltip</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Text that appears when agents hover a mouse over the UI component.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Description</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Verbose description of this Workspace Action.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Application</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 "><span class="ph">Application that this component applies to. Global means that the component applies to all applications.</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Workspace</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Workspace this UI component appears in.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Table</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Table this related list action shows up on. <ul class="ul" id="set-up-adding-records-to-related-lists__ul_fk3_v3t_vlb"><li class="li">For an o2m relationship, make sure the table is your o2m related list table. For example, incident.</li><li class="li">For an m2m relationship, make sure the table is your m2m table. For example, task_location.</li></ul> In our example, select task_location.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">View</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Select <span class="ph uicontrol">workspace</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Active</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">Toggle to turn on (selected) and off this UI component.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e281 ">Order</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e284 ">The sequence order in which this UI component appears in a horizontal list of UI components. The lower the value, the further left the location.</td></tr></tbody></table> </div> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Under <span class="ph uicontrol">Related Links</span>, click <span class="ph uicontrol">Advanced view</span> to give the component the properties it needs to function.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">On the <span class="ph uicontrol">Component Attributes</span> tab, fill in the fields.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="set-up-adding-records-to-related-lists__table_zw4_2fx_njb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 2. </span>Component Attributes form</span></caption><colgroup><col style="width:24.93765586034913%" /><col style="width:75.06234413965088%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d78147e504">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d78147e507">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e504 ">label</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e507 ">Name that appears on the top of the modal when you click the <span class="ph uicontrol">Add</span> button.<p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_uzc_vfx_njb" src="../image/add-location-title.png" height="111" width="403" alt="Modal title." /></p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e504 ">extensionPoint</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e507 ">In our example, leave this blank. This field filters the list in the modal. When an agent clicks <span class="ph uicontrol">Add</span>, every possible association is shown between the cmn_location and task tables. This field prevents some of those associations. To learn how to create an extension point, see <a class="xref" href="../build/applications/concept/extension-points.html" target="_blank" rel="noopener noreferrer">Using extension points to extend application functionality</a>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e504 ">userGivenTable</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e507 ">Table that appears in the modal. In our example, we want to open the locations agents can add, so select cmn_location.<ul class="ul" id="set-up-adding-records-to-related-lists__ul_ab4_wnn_vlb"><li class="li">Select task_location for m2m relationships.</li><li class="li">For o2m relationships, select the table associated with the many portion of your o2m. For example, <span class="ph uicontrol">Incident</span>.</li></ul> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e504 ">hideSelectAll</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e507 ">Field that enables you to hide Select All. Select <span class="ph uicontrol">True</span> to hide Select All.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e504 ">referencedfieldName</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e507 ">Field displayed in the modal from the <span class="ph uicontrol">userGivenTable</span>. In our example, enter location (lowercase). To find the field name, right-click the <span class="ph uicontrol">Location</span> field title on the many-to-many table form. <p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_lv3_ghx_njb" src="../image/show-location.png" height="136" width="225" alt="Field name." /></p> <p class="p">This field is not used for o2m relationships.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e504 ">type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e507 ">Record relationship type. Select an <span class="ph uicontrol">o2m</span> or <span class="ph uicontrol">m2m</span> relationship for the records. <ul class="ul" id="set-up-adding-records-to-related-lists__ul_tpx_yln_vlb"><li class="li"><span class="ph uicontrol">o2m</span> enables a parent record in one table that can reference several child records.</li><li class="li"><span class="ph uicontrol">m2m</span> enables multiple records in a table that are associated with multiple records in another table.</li></ul> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e504 ">parentFieldName</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e507 ">The name of the field you're making the reference from, in this example, it's task. To find the field name, right-click the field title. <p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_jnt_5hx_njb" src="../image/task-field-title.png" height="193" width="292" alt="Task field." /></p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e504 ">columns</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e507 ">Comma-separated list of columns you want displayed in the modal. For example, in the cmn_location table, you might want name and city. So, enter name,city.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e504 ">view</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e507 ">The view of the list. Do not add a value; the default view is fine.</td></tr></tbody></table> </div> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">Update</span>.</span> <div class="itemgroup info">You've created an <span class="ph uicontrol">Add</span> button that shows up in the Related Lists area when an incident record opens.</div> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Make sure the <span class="ph uicontrol">Add</span> button appears and works.</span> <ol type="a" class="ol substeps" id="set-up-adding-records-to-related-lists__substeps_edf_f3x_njb"><li class="li substep substepexpand"> <span class="ph cmd">Open an incident by navigating to <span class="ph menucascade"><span class="ph uicontrol">Incident</span> > <span class="ph uicontrol">Open</span></span> and clicking an incident.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Click the <span class="ph uicontrol">Affected Locations</span> Related List.</span> <div class="itemgroup info">You should see the <span class="ph uicontrol">Add</span> button in Related Lists.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">Add</span>.</span> <div class="itemgroup info">A modal appears.<p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_tjv_s3x_njb" src="../image/modal-locations.png" height="294" width="438" alt="Modal for locations." /></p> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select several check boxes to add those addresses to the incident record and then click <span class="ph uicontrol">Add</span>.</span> <div class="itemgroup info">The addresses you selected appear in <span class="ph uicontrol">Affected Locations</span>.<p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_esn_y3x_njb" src="../image/affected-locations.png" height="216" width="792" alt="Affected locations." /></p> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Enter task_location.list in the <span class="ph uicontrol">Filter Navigator</span> to show the task_location table.</span> <div class="itemgroup info">The new locations should appear in the table.</div> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Add a remove action.</span> <div class="itemgroup info"> <p class="p">You can create a remove button that enables agents to remove records from a related list and disassociate that record from the parent table. This functionality supports o2m and m2m tables.</p> </div> <ol type="a" class="ol substeps" id="set-up-adding-records-to-related-lists__substeps_dgs_ygx_wlb"><li class="li substep substepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">Workspace Experience</span> > <span class="ph uicontrol">Actions & Components</span> > <span class="ph uicontrol">Related List Actions</span></span> and click <span class="ph uicontrol">New</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">On the form, fill in the fields.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="set-up-adding-records-to-related-lists__table_lx5_tht_vlb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 3. </span>Action Assignment form</span></caption><colgroup><col style="width:27.47252747252747%" /><col style="width:72.52747252747253%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d78147e850">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d78147e853">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Action label</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Label that appears on the button in the Related Lists area. Make sure the action label includes <span class="keyword parmname">({<!-- -->{count}}) </span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Action name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">The name for this record that appears in the list of related list actions, <span class="ph menucascade"><span class="ph uicontrol">Workspace Experience</span> > <span class="ph uicontrol">Actions & Components</span> > <span class="ph uicontrol">Related List Actions</span></span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Implemented as</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Select <span class="ph uicontrol">Server Script</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Specify UI component</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Select <span class="ph uicontrol">sn-multi-record-associator</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Button type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Select <span class="ph uicontrol">Primary</span>. Primary buttons are green. Secondary buttons are gray.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Record Selection Required</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Checkbox to make record selection required. Toggle the checkbox.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Tooltip</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Text that appears when agents hover a mouse over the UI component.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Description</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Verbose description of this Workspace Action.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Application</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 "><span class="ph">Application that this component applies to. Global means that the component applies to all applications.</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Workspace</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Workspace this UI component appears in.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Table</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Table this related list action shows up on. <ul class="ul" id="set-up-adding-records-to-related-lists__ul_a5q_bjt_vlb"><li class="li">For an o2m relationship, make sure the table is your o2m related list table. For example, incident.</li><li class="li">For an m2m relationship, make sure the table is your m2m table. For example, task_location.</li></ul> In our example, select task_location.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">View</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Select <span class="ph uicontrol">workspace</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Active</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">Toggle to turn on (selected) and off this UI component.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e850 ">Order</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d78147e853 ">The sequence order in which this UI component appears in a horizontal list of UI components. The lower the value, the further left the location.</td></tr></tbody></table> </div> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Click the menu icon (<img class="image icon" id="set-up-adding-records-to-related-lists__image_zrh_cht_vlb" src="../image/menu-icon-save.png" alt="Menu icon" />) and click <span class="ph uicontrol">Save</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Under <span class="ph uicontrol">Related Links</span> click <span class="ph uicontrol">Advanced view</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Click the <span class="ph uicontrol">Server Script</span> tab.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Enter a server script in the scripting field. current.deleteRecord(); into the server script field.</span> <div class="itemgroup info"> <ul class="ul" id="set-up-adding-records-to-related-lists__ul_rxf_ykt_vlb"><li class="li">For m2m relationships, enter current.deleteRecord();.</li><li class="li">For o2m relationships, enter current.[field_name] = ''; current.update();.</li></ul> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Under <span class="ph uicontrol">Related Links</span> click <span class="ph uicontrol">Advanced view</span>, and click the <span class="ph uicontrol">Confirmation Settings</span> tab.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Toggle <span class="ph uicontrol">Confirmation required</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">Update</span>.</span> </li></ol> </li></ol> <div class="section postreq" id="set-up-adding-records-to-related-lists__postreq_dbm_mn3_bjb"> <div class="sectiondiv"> <div class="p">Select a component from the list to set it up. <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="set-up-adding-records-to-related-lists__table_dxj_nlv_pjb" class="table" frame="void" border="0" rules="none"><colgroup><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /></colgroup><tbody class="tbody"><tr class="row"><td class="entry nocellnorowborder" style="text-align:left;vertical-align:top;"><ul class="ul" id="set-up-adding-records-to-related-lists__ul_stg_plv_pjb"><li class="li"><a class="xref" href="configure-new-menu-items.html" title="Enable agents to create the records they need so they can do their work in Workspace.">Tabs</a></li><li class="li"><a class="xref" href="configure-notification-triggers.html" title="Send notifications to an agent or a small group of agents when there are updates to important records.">Notifications</a></li><li class="li"><a class="xref" href="configure-forms-workspace.html" title="Configure the primary field and secondary values in form headers so that agents can quickly orient themselves to an issue.">Form Header</a></li><li class="li"><a class="xref" href="configure-agent-workspace-ui-actions.html" title="Set up UI actions to customize legacy workspace for your organization. UI actions include custom buttons, menu items and limiting access to forms based on a user's role.">UI Actions</a></li></ul> </td><td class="entry nocellnorowborder" style="text-align:left;vertical-align:top;"><ul class="ul" id="set-up-adding-records-to-related-lists__ul_lyk_qlv_pjb"><li class="li"><a class="xref" href="configure-service-workspace-ribbons.html" title="Set up ribbons in legacy workspace to help agents quickly scan relevant information about a record, such as the record's time line, a customer summary, and record SLAs.">Ribbon</a></li><li class="li"><a class="xref" href="configure-related-lists.html" title="Set up the items that are related to the open record so that agents can get a better understanding of the record and its impact.">Related Items</a></li><li class="li"><a class="xref" href="configure-form-layout-AW.html" title="Select the fields that appear in form pane to help agents do their work.">Form pane</a></li><li class="li"><a class="xref" href="../../configurable-workspace/concept/declarative-actions-landing.html" title="Engage with your workspace forms, fields, lists, and related list pages by adding custom actions.">Actions & Components</a></li></ul> </td><td class="entry nocellnorowborder" style="text-align:left;vertical-align:top;"><ul class="ul" id="set-up-adding-records-to-related-lists__ul_hgc_rlv_pjb"><li class="li"><a class="xref" href="configure-activity-stream-general.html" title="Set up the options of how agents can interact with Activity stream to make their job easier.">Activity Stream</a></li><li class="li"><a class="xref" href="../concept/configure-the-sidebar.html" title="The Contextual Side panel provides agents with tools to research and resolve problems. The different components provide the agents with different types of help.">Contextual Side Panel</a></li></ul> </td></tr></tbody></table> </div> </div> <p class="p"><img class="image" id="set-up-adding-records-to-related-lists__image_n3z_ylv_5jb" src="../reuse/../image/record-view-4.jpg" alt="Record view" /></p> </div> </div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../administer/workspace/task/configure-related-lists.html" title="Set up the items that are related to the open record so that agents can get a better understanding of the record and its impact.">Set up Related Items in legacy workspace</a></div> </div> </div></body></html></div>