Custom "ADD" UI Action on Related List to have same function as ImpactedCI Related List on INC table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2024 10:49 PM
Hi All,
I have a requirement to build an ADD Related List Button on Incident table to add Business unit(s). The concept would be same as OOB Impacted CI add button on Incident.
After doing some analysis I found:
1) There is 2 UI Action Add on Impacted CI table and Add Selected on CI table.
2) The script written in UI action is using GlideModel API, which actually calls UI page. The pages called is not available for admins. Also in OOB approach its calling Script Include and ,most of the functions are in js-Template (non accessible for admins again).
Has anyone tried creating custom approach to build same function?
If yes then what are the steps / scripting used?
Thanks In advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2024 01:46 AM
As per my understanding achieving same functionality is not possible as the script is not exposed by servicenow. There could be a possible work around:
1. Create a new view for your table.
2. Open the list using custom "Add" UI action in the view created above. This can be achieved using "GlideDialogWindow" method.
3. Create a new UI action of type "list choice" and handle your logic to add records using this UI action.
4. You need to control the visibility of the UI action in step 3 for the view created in step1.
Raghav
MVP 2023