- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 01:10 AM
Hello Everyone,
I'm attempting to hide the data in the description field for certain records. Specifically, I want to hide it when the assignment group is "CAB," and the incident was generated by the "Create Incident" record producer. I've tried using ACLs, but they affect all records, not just the ones I want to target. Additionally, I've created some business rules, but they hide the entire record rather than just the field.
To clarify with an example: If I'm a non-assignment group member, I should be able to see the descriptions for most records in the list view, but not for that particular record.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 02:32 AM - edited 10-05-2023 02:33 AM
Hi @Sahil Khan1 ,
Besides, the ACL above you also need one more ACL to provide the access READ to other cases. (Here is the ones not created via record producer)
Sample below:
Result:
You can also achieve it through one ACL through script. The logic should be
- If the current Incident is not created via Record Producer => answer = true
- If the current Incident is created via Record Producer
- If the Assignment Group is CAB => answer = false
- Else (Assignment Group is not CAB) => answer = true
Sample script:
if(current.getValue('u_catalog_sys') !== '3f1dd0320a0a0b99000a53f7604a2ef9'){
answer = true;
}else{
if(current.getValue('assignment_group') === 'b85d44954a3623120004689b2d5dd60a'){
answer = false;
}else{
answer = true;
}
}
Let me know if it works for you.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 01:15 AM
Hi @Sahil Khan1 ,
You can create an ACL & in the script part of ACL, you can mentioned your conditions on top of it. So ACL will work only in specific cases.
Let me know if you need more
Mark my answer as Helpful & Accepted if it suffice the requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 01:48 AM
Thanks for your response
Could you please explain how I do this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 01:35 AM
Hi @Sahil Khan1
The condition regarding the Group should be "is not" as you'd like to hide it if the Assignment Group is CAB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 01:52 AM
Thanks for your response.
it is not working as expected.