Hide specific catalog items from ESC but keep them visible in another portal

NouhaylaA
Tera Contributor

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?

3 REPLIES 3

Rafael Batistot
Tera Sage

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:

 

  1. Go to Service Catalog > Catalog Policy > User Criteria.
  2. Create a new User Criteria record, e.g., Visible on Clearsky only.
  3. 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");

 

Ankur Bawiskar
Tera Patron
Tera Patron

@NouhaylaA 

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

AnkurBawiskar_0-1755074360870.png

 

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@NouhaylaA 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader