- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 11:58 AM
I have a simple record producer that seems to be configured identically to all of my other record producers but I cannot use it on the service portal and I get the message "You are either not authorized or record is not valid."
Testing the code I see that the method "isVisibleServicePortal" is returning false. I am running on an admin account and have tested accessibility: there are no entries in the "Available for" and "Not available for" related lists, it is in the same main service catalog as all of the other catalogs and everything seems to be identical to the other, working producers.
It would be really nice to know what the logic within sn_sc.CatItem's isVisibleServicePortal method.
The code is in the widget "SC Catalog Item":
var validatedItem = new sn_sc.CatItem('' + data.sys_id);
if (!validatedItem.canView() || !validatedItem.isVisibleServicePortal()) {
data.recordFound = false;
}
Thanks!
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 04:45 PM
Well, it's super easy. There is a field called "hide_sp" that's not on the forms. This one had the flag checked.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 12:36 PM
Hmm...does it do the same thing if you try to access it via the platform UI?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 12:52 PM
No, the platform is currently in production and works great.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 04:10 PM
This is fun, but I created a little Xplore script and called this method on every single catalog item in the system. The one I'm struggling with is the only one that returned "false".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 04:45 PM
Well, it's super easy. There is a field called "hide_sp" that's not on the forms. This one had the flag checked.