Finding scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
how to find what scripts are running in the background when we perform anything like clicking an ui action button, a modal opening and the record is changing state to close complete but in the ui action is is not defined, updating the state to close complete is done through another script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @bhattahemas
You are getting Modal pop-ip , because it is defined somewhere in your UI action with GlideModal .
For pop-up page it is a UI page.
e.g a line in UI action
var gm = new GlideModal('ui_page_name', false, 400);
First for better understanding GlideModal, refer :
https://www.servicenow.com/docs/r/zurich/api-reference?topicPivot=crapiref-c_GlideModalV3API
https://davidmac.pro/posts/2022-02-08-glidemodal/
GlideModal API for use in the native back-end UI. It has replaced the deprecated GlideWindow and GlideDialogWindow API's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @bhattahemas ,
You can check the code of UI action it must be calling some UI page, and some kind of script i.e. client script, script include, etc. You will find the code related that state change somewhere in that script.
If my response helped, please mark it as the accepted solution so others can benefit as well.
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
28m ago
Hi @bhattahemas
i would check business rules applied on that table.
if you have, you can try /code slashcommand with SN UTILS browser
100 % GlideFather experience and 0 % generative AI
