- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 02:02 PM
I am trying to add a Service Portal menu to only a specific page of my Service Portal, but I am not having much luck finding a condition that will work. Has anyone done anything similar or do you know what the condition should be. In this example we will say the page id is lsm_sc.
Solved! Go to Solution.
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 02:08 PM
I ended up logging a ticket with Service-Now and they pointed me in the direction of $sp. They normally don't help with something like this, but because the documentation is sparse he helped me out. In this case he let me know I should use the .getParameter and use the ID parameter. In the case of my example the condition would be:
$sp.getParameter("id")=="lsm_sc"
This allowed the menu to show only when the page had the id of lsm_sc and did not show otherwise. Thanks again for all those that replied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 02:11 PM
Hello Dion
Once you have created the menu, you have field on the menu form to append your URL.
You can enter your URL where you want to display the Menu and hit save. You can also adjust the Menu on the form by using the order field.
Please hit correct/helpful based on impact of answer
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 03:04 PM
Nitin,
Thank you for the reply. I guess I should rephrase what I am looking for. I have a menu item that is pointing to a specific product status page that we use. We will call this status page https://status.mycompany.com. That is what is currently what is in the HREF/URL and it works correctly. However I only want this Service Portal Menu item to show when the Service Portal Page is lsm_sc. I have seen this once before, and I know I need to add a condition to the condition field. I am just not 100% sure how to write that condition. I assume it is GlideSPScriptable something, but I cannot figure out what that something is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 03:59 PM
Dear Dion,
I believe you are looking for this. GlideSPScriptable.canSeePage("services_status") instead of services_status add the id of your page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 04:01 PM