Scott Halverson
ServiceNow Employee
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
03-29-2023 11:12 AM - edited 03-29-2023 11:13 AM
Symptoms:
Unable using the UI slushbucket to add a field that is only defined at a child table from the reference. In this case CI to Asset (but an attribute on the child table of alm_hardware)
Solution
Update the record using background script/fix script. Below is a coding example.
var gr = new GlideRecord('sys_ux_list')
if(gr.get('c4f09bdc0781201019cc909f0ad30076')){
var columns = gr.columns;
var updatedColumns = columns + ',configuration_item.asset.ref_alm_hardware.u_test_attribute_at_child_table';
gr.columns = updatedColumns;
gr.update();
}
Please upvote this idea on the idea portal to make this capability native without the use of scripts.
Adapted from https://www.servicenow.com/community/developer-forum/problem-with-dot-walking-and-extended-table/m-p...