Hide a Record Producer from Service Portal and visible only CMS portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 11:40 AM
Hi Team,
I created Record producer Create Case, this is visible only CSM portal not sp portal.
I set 'Hide on Service portal' field to true, but not use
Help me on the same
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 07:04 PM
Hi @AnilM99 ,
If you want to block access to SP and allow CSM to access record producer, maybe, ACL could be an answer.
Can you try the following script in ACL and see if you were able to block SP access.
if (gs.getUser().getAvailableElevatedRoles().contains('sp')) {
// Block access from the Service Portal
answer = false;
} else {
// Allow access from other portals (e.g., CSM)
answer = true;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 07:14 PM
Hi @AnilM99 ,
Refer this : https://www.servicenow.com/community/developer-forum/need-to-make-the-record-producer-not-available-...
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025