How to disable/hide the remove button in attachments in Agent Workspace

Lavanya R1
Tera Contributor

Hi everyone,

I have a requirement when the change is not in new state, the removal of the attachment should be restricted in Agent Workspace. But, the user should be able to add attachment in all the stages.

It would be helpful if anyone could answer.

Thanks in Advance

 

1 ACCEPTED SOLUTION

Subrahmanyam2
Giga Guru

Hi Lavanya,


Attachments are finally stored in sys_attachment (meta data), sys_attachment_doc (the actual data) tables.
You have to write before delete business rules on each of these to abort the deletion action, then the deletion will be stopped.
But with only this solution the problem is, users may see that attachment is removed when performing the removal action, but when they reload the form like (incident) it will show the attachment again.
Even if we keep the gs.addErrorMessage in business rules they will not show the error messages as these actions are done differently.

Please check the snapshots of Business rules below:
find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

 

You may use still want to keep the UI page customizations as they will work in normal UI (If you remove UI page customizations in normal UI, then the error message while trying to remove attachments will not appear), but the maintenance overhead during upgrades will be there.

 

Thanks and regards,

Subrahmanyam Satti

View solution in original post

15 REPLIES 15

Sagar Khobare2
Tera Contributor

Hello,

 

I am able to achieve solution via above business rules but I want to hide below info message.

 

SagarKhobare2_0-1751353783176.png