- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 01:29 PM - edited 09-22-2023 01:36 PM
Hi,
My question is related to the ACL on the HR Task table.
Scenario: HR Agents are not allowed to delete HR Tasks if the parent Case has the HR Service set to 'Feedback' or if parent Case state is 'Suspended.'
Agents can delete any other tasks; it's only these specific tasks that I need to restrict from being deleted.
I can modify the script in the existing OOB ACL for the 'DELETE' operation, but I'm not sure if this is the best approach. The highlighted section in red indicates the added script, which works.
I tried to create new ACL to override existing ACL, but it didn't work. Seems like OOB ACL has highest priority.
Below custom ACL
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 03:11 AM - edited 10-18-2023 03:13 AM
The problem has been solved. I my previous scenario, when HR Service is set to 'Feedback', or if the parent Case's state is 'Suspended', it indicates that I use the "Feedback" and "Suspended" HR templates for the child task.
I adjusted the solution to align with below approach. I modified the oob ACL and added a script where I check if one of the HR Template sys_id values is stored in the System property. If it is, I set the answer to false. So, whenever the task will be created with the HR template (Feedback or Suspended) then user won't see Delete button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 03:11 AM - edited 10-18-2023 03:13 AM
The problem has been solved. I my previous scenario, when HR Service is set to 'Feedback', or if the parent Case's state is 'Suspended', it indicates that I use the "Feedback" and "Suspended" HR templates for the child task.
I adjusted the solution to align with below approach. I modified the oob ACL and added a script where I check if one of the HR Template sys_id values is stored in the System property. If it is, I set the answer to false. So, whenever the task will be created with the HR template (Feedback or Suspended) then user won't see Delete button.