Manage quick links widgets
On this page
Manage quick links widgets
Select and display Quick Links on the EmployeeWorks Web App home page and Canvas by capturing sys_ids and updating each widget.
Before you begin
Role required: admin.
Create and configure the Quick Links to display in Employee Center before starting.
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.
Note: Configure quick links from the admin console helps you configure quick links using the interface.
Procedure
-
Section 1: Capture Quick Link sys_ids
-
Go to Employee Center > Quick Links, or open the
sn_ex_sp_quick_linktable 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 System Definition > Scripts – Background.
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.
/* ------------------------------------------------------- * Updates the Quick Links widget on the Employee Home Page. * Add your Quick Link sys_ids as comma-separated values * in the "value" field below. * ------------------------------------------------------- */ var WIDGET_ID = 'quick-links'; var NEW_OPTIONS = { "quick_links": { "value": "sys_id1,sys_id2,sys_id3" // Replace with your sys_ids } }; // ---- Do not edit below this line ---- 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_id3with 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 AIUX > Dashboards 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.
Related topics
Keep exploring.
Find another answer, or bring this documentation into your own tools.