\$sp.getParameter("table")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2017 09:09 PM
May i know what is the use of $sp.getParameter("table") in widgets?
How does it take a value?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2017 10:55 PM
Hi Amaneet,
The $sp.getParameter() method retrieves the sys_id from the request querystring. You may require to use $sp.getParameter("sys_id") in this case.
More more reference use the below link :
Let me know if this was useful/correct
Have a great day ahead
Regards,
Divya Mishra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2017 11:39 PM
$sp global object refers to methods of GlideSPScriptable API.
Refer the below link :
https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=r_GSPS-getParameter_S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 03:25 AM
It returns the value of a given key from the query string i.e. whatever the value of "table" will be returned using this method.
Please mark it as helpful , if it helped you.