Hide specific catalog items from ESC but keep them visible in another portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have two portals in ServiceNow: the Employee Center (ESC) portal and the Clearsky portal.
I would like the catalog items that belong to the Clearsky catalog to be hidden on the ESC portal, but still visible on the Clearsky portal.
What would be the best way to configure this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @NouhaylaA
May you try via User Criteria
User Criteria in ServiceNow let you control who can see a catalog item and you can extend that to which portal they see it on.
Steps:
- Go to Service Catalog > Catalog Policy > User Criteria.
- Create a new User Criteria record, e.g., Visible on Clearsky only.
- In the Advanced tab of the user criteria, use a condition to check the Portal:
- Field: Request portal (or a custom script condition to check sp.portal).
- Condition: Only returns true when the portal is Clearsky.
Example of script
answer = (gs.getSession().getProperty("glide.sc.portal") == "clearsky_portal_id");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
then remove that Clearsky catalog from ESC portal.
Steps
1) Go to "m2m_sp_portal_catalog" table
2) search for your Clearsky catalog and ESC portal mapping record
3) deactivate that record
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader