- 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-25-2018 05:53 AM
Ahh that makes sense. Glad you got it working!