- 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 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 03:47 AM
Thanks for your support it's help me a lot, I added one more condition in it, now it's working fine.