How to Hide Attachment option for Closed HR Cases on Service Portal

Tahzeeb
Giga Expert

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

 

 

4 REPLIES 4

Community Alums
Not applicable

HI @Tahzeeb ,

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-find_real_file.png

 

 

This checks the parameter from Server Side code ::

 

find_real_file.png

 

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

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

John Zhang1
Kilo Patron
Kilo Patron

@Tahzeeb 

Since you can't change the widget.  Can you try the following code?

find_real_file.png

 

If my reply is Helpful/Correct, please mark the answer as Helpful/Correct.

 

 

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