Select and display Quick Links on the Employee Slate home page and Canvas by capturing sys_ids and updating each widget.
About this task
Both widgets use sys_ids from the Employee Center Quick Links table (sn_ex_sp_quick_link). Complete Section 1 first, then configure the home page widget, the Canvas widget, or both.
Procedure
Section 1: Capture Quick Link sys_ids
-
Go to , or open the
sn_ex_sp_quick_link table directly.
-
Open the Quick Link record to include in the widget.
-
Right-click the record header or any field label, then select Copy sys_id.
-
Repeat for each Quick Link to display.
Save the sys_ids in a text file as a comma-separated list. You use this list in the sections below. For example: sys_id1,sys_id2,sys_id3.
Section 2: Configure the home page Quick Links widget
-
Go to .
The home page Quick Links widget configuration field is read-only in the standard UI. Use a background script to update it programmatically.
-
Copy the following script and paste it into the script editor.
var WIDGET_ID = 'quick-links';
var NEW_OPTIONS = {
"quick_links": {
"value": "sys_id1,sys_id2,sys_id3"
}
};
var gr = new GlideRecord('sys_aix_widget_instance');
if (!gr.get('5ebb39e1ffda72106d14ffffffffffff2a')) {
gs.info('Record not found');
}
var props = JSON.parse(gr.getValue('properties'));
var widget = null;
for (var i = 0; i < props.widgets.length; i++) {
if (props.widgets[i].id === WIDGET_ID) {
widget = props.widgets[i];
break;
}
}
if (!widget) {
gs.info('Widget "' + WIDGET_ID + '" not found in properties');
}
widget.options = NEW_OPTIONS;
gr.setValue('properties', JSON.stringify(props, null, 4));
gr.update();
gs.info('Updated options for widget "' + WIDGET_ID + '"');
-
In the value field of the script, replace
sys_id1,sys_id2,sys_id3 with your comma-separated list of Quick Link sys_ids.
-
Select Run Script.
The home page Quick Links widget shows the Quick Links with the sys_ids you provided, based on the access permissions of each user.
Section 3: Configure the Canvas Quick Links widget
-
Go to and open the Canvas record.
-
In the AIX Dashboard Items related list at the bottom of the record, locate and open the Quick Links widget instance.
-
In the Widget Properties field, locate the value property.
-
Enter your comma-separated list of Quick Link sys_ids in the value field.
For example: sys_id1,sys_id2,sys_id3
-
Select Save.
The Canvas Quick Links widget displays the Quick Links with the sys_ids you provided.