Header Menu error in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2017 01:58 PM
I'm testing out a secondary service portal in my Dev environment that will tailor to a specific division of our company. I've copied most of the items for the main service portal over from the out of the box portal but I'm having an issue with creating a new header menu for this second portal. I created the menu item Service Catalog without any issues but when I try to add the Menu Items "Requests" or "Approvals" (both scripted lists) I get an error on the page.
Here's the error:
Line 65 (the same default code from out of the box portal):
Service Portal Tree:
The Requests menu item doesn't show up in the Header Menu either, only the Service Catalog.
Probably unrelated but it might be worth mentioning that Requests and Approvals work as widgets in the body of the home page. Just not in the header menu.
Any tips would be greatly appreciated as I'm pretty new to Service Portals. Thank you!
-Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2017 07:41 AM
Hi Daniel,
Is this a scoped Service Portal? The scope would be the Application field on the sp_portal record for your new Portal.
If so, we have see the same error because the $sp object is not defined for scoped menu items in Helsinki. Which version are you using?
I see the "Service Catalog" menu item record in sp_rectangle_menu_item does not have a Server Script, so does not reference $sp - hence why it won't show the error.
Mike

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2018 08:40 PM
Hi Michael,
I'm getting the same issue - wondered if you could explain why $sp is not available in a scoped app (I'm trying to use it in the HR portal - a direct copy of the same in the /SP portal). And how would I change the code or make the $sp available?
Thanks
Carl.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2018 08:39 PM
Hi Daniel,
Did you mange to solve this? I'm getting the exact same error when trying to add the 'Approvals' menu to my HR Portal - a direct copy of the same on the /sp portal....
Hoping you have 🙂
Thanks
Carl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2020 12:34 PM
Same problem here, except with the Requests widget and it is loading angular multiple times instead of missing (okay, maybe this is the opposite problem?) I opened a HI ticket. We'll see where that goes.