- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2019 05:43 PM
Anyone know, what is $sp.do and why is it tagged as a public page in the sys_public table?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2019 05:59 PM
$sp.do is the core Service Portal UI Page that lives on the ServiceNow file system. It is marked as public since Service Portal pages can be marked as public.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2019 10:17 AM
Pages that start with $ are typically using Angular.js but could just as easily be using React.js. As far as I know, it's just a naming convention for separating single-page apps from standard UI pages.
An Angular Directive is totally different.
"Angular directives are used to extend the power of the HTML by giving it new syntax. Each directive has a name — either one from the Angular predefined like ng-repeat , or a custom one which can be called anything. And each directive determines where it can be used: in an element , attribute , class or comment ."
So for example, I can create a Directive (custom HTML tag) called "<carousel></carousel>" that when used renders a Bootstrap Carousel. It's not just limited to tags, and can also be used with attributes or classes... but in short, it's a way of combining HTML and logic and assigning it to a tag, class, or attribute.
I created a tutorial for creating a Directive here: https://serviceportal.io/creating-angular-directive-service-portal/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2019 05:59 PM
$sp.do is the core Service Portal UI Page that lives on the ServiceNow file system. It is marked as public since Service Portal pages can be marked as public.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2020 12:07 AM
Hi Nathan,
I know we can view a catalog item or record producer like so:
https://dev50458.service-now.com/$sp.do?id=sc_cat_item&sys_id=3a114939931813004a9032bfa67ffb9d
Is it possible to do the similar thing for a portal widget e.g. be able to see the widget without embeding it in a page?
This will help me to show a widget as a dialogue in the backend ...
TIA

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2019 06:22 PM
Hi ,
Please go once these belo links :
I have also found this site to be helpful:
GlideSPScriptable is what you (and I) have been searching for!
$sp is a global object used to access various GlideSPScriptable methods that allow you to perform various functions. More info can be found on the SN docs site here.
Please mark as correct and also helpful.
Thanks
Sanjay Bagri
Dxsherpa.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2019 06:45 PM
thanks for trying, but a global object is not a page.