- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 10:31 AM
On a Knowledge 19 lab for MetricBase, at one point I had to use the following link:
https://ccw0446a-113.lab.service-now.com/sys.scripts.do?action=run_module&sys_id=58a6604513255300178e7f176144b0f6
I don't quite get what happens in the background for a URL formatted like this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 11:40 AM
Found it. It is literally running a script that is defined in a module. Create a module:
Get its sys_id, feed it into that parameter, and run it. It will run the script that is in the arguments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 10:46 AM
sys.scripts.do is Scripts - Background in your UI. It appears that it is calling a script and running it in the background scripts module.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 10:53 AM
Thank Mike,
Do you know where the script is define?
For example, in the URL I posted it has sys_id as a parameter. In what table is the record with that sys_id located?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 11:11 AM
I cannot find that specific sys_id, so it may have been something they had specifically for that lab. Or, it could be a script we don't have access to, because when I put that url at the end of my PDI's address, it appears to be running something, as I get an execution time for it. I am interested to find out exactly how it is used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 11:40 AM