How to Hide Attachment option for Closed HR Cases on Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2022 01:10 AM
Hi Team,
We have a requirement that if the Case is Closed, we should not allow Users to add attachments via Service Portal.
I read couple of posts where it is mentioned that this can be done via ACL but what is the design of that ACL and on which Table we need to write the ACL.
I have tried on sn_hr_core_Case and sys_attachment table but nothing is working
Regards,
TM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2022 02:05 AM
HI
The easiest way to achieve this is using proper ACL's. Setup proper ACL's so that users are not allowed to update anything on HR Cases if the active flag is false on HR case Table. Once, the ACL's are setup; the users will not be able to add attachment or update anything.
Or you can create copy of widget - Ticket Conversations to handle this. Below highlighted line of code called in HTML-
This checks the parameter from Server Side code ::
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2022 02:32 AM
Hello Sundeep,
Thanks for the reply. I had gone through this post.
I can't make changes in widget as the widget is already customized and we don't have option to change the script
Can you please explain bit about the ACL,, on which table I have to write the ACL and what would be the condition
Regards,
TM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2022 10:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2022 12:40 AM
Hi John,
Thanks for your reply.
I did tried this approach but its not working.. I could see the option still available when the User clicks on MyRequest Tab and checks the Closed HR Cases