ACL: When a record is read only , make the related list as read only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 10:52 PM - edited 02-01-2024 10:55 PM
Hi ,
I want to make as read only related lists of a record which is read only. ACL is used to make the record read only, but the some related lists are editable.
As of now the related list is editable. The users can make changes to related list by using the buttons NEW, EDIT,etc.
Example:
Can some one suggest how to make the related lists also as read only..
Regards
Snehal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 11:08 PM
why not handle the visibility of New and Edit based on the value of parent field?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 11:21 PM
There are many different tables and many different groups for wch we have to make the record read only. I have used ACL to make record read only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2024 11:31 PM
Any Suggestion on this please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 12:00 AM - edited 02-05-2024 12:00 AM
You have to write an ACL with Operation as "list_edit" on the Related List Table. In the ACL specify the roles and use script below which is on Change table with problem table related list:
Type - record
Operation - list edit
Name -> problem *
if(current.parent!='' && current.parent.getDisplayValue().indexOf('CHG') >-1)
{
answer=false;
}
Regards,
Piyush Sain