- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 02:06 AM - edited 12-19-2024 02:08 AM
Hi All,
I have requirement to restrict editability of state field on User approval [sysapproval_approver] table and the requirement is I have a field named as approval flag and if the approval flag is set to true then I need to restrict editability of state field.
I have tried with write ACL but it is not working, Can anyone help me with this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 03:27 AM
Hi @priyanka1028 ,
Below OOB write acl on state field is restricting to edit approval flag and if the approval flag is set to true then I need to restrict editability of state field.
If my response helped, please mark it as the accepted solution ✅ and give a thumbs up👍.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 03:32 AM
Hi @Anand Kumar P , I have tried by deactivating the above ACL still my ACL is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 03:39 AM
Hi @priyanka1028 ,
i hope you created write acl on sysapproval_approver table field state
condition if approval flag true use below script
(function() {
if (current.Approvalflag field backendname == true) {
return false;
}
return true;
})();
If my response helped, please mark it as the accepted solution ✅ and give a thumbs up👍.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2025 02:44 AM
the link which you have shared it not working and also tell me where to find that acl for state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2025 06:20 AM
Did you change the URL to your own instance, because with me it opens the OOB ACL immediately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 03:57 AM
Can you show a screenshot of ACL you have tried?
You need to make sure that the same restriction is applied on ALL write ACL on sysapproval_approver.state as you need only one acl on the same level to return true to pass. So if there are 2 or more ACL and one returns true and one returns false, overall its true.