I have googled a lot but do not found any supportive document for guidance. I have a standard Files upload option under Task(Standard) object. We have a scenario like users will not have permission to delete the file. But I do not find any way to remove this delete Option from UI.enter image description here

Please suggest.

  • 3
    You have to write a trigger for it onDelete on ContentDocument – Pranay Jaiswal Mar 27 '19 at 11:15
  • @PranayJaiswal You should post it as an answer - not comment :) – Łukasz Kojzar Apr 21 at 6:34

Have you set up the user in question permissions correctly?

Setup -> Manage Users -> Users -> Find the users and click on their profile -> System Permissions -> 'Edit Tasks' and then revoke edit access like so by unchecking the checkbox: enter image description here

| improve this answer | |
  • Hi Harry, but this user can edit the task. Need to prevent file deletion only. Also, I tried to uncheck Edit Tasks Permission on his profile, User still able to delete the file. – VDahiya Apr 3 '19 at 5:45
  • answer is not working – sdandamud1 Dec 6 '19 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.