Hide a Record Producer from Service Portal and visible only CMS portal

AnilM99
Tera Expert

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!

2 REPLIES 2

varaprasad123
Kilo Guru

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;
}

Hemanth M1
Giga Sage
Giga Sage

Hi @AnilM99 , 

 

Refer this : https://www.servicenow.com/community/developer-forum/need-to-make-the-record-producer-not-available-...

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025