You need to sign in to do that
Don't have an account?
Erin Ryan 52
prevent deletion of Opportunity Attachments
I need to prohibit users from deleting Opportunity attachments via Notes & Attachments except system admin. I'm not a developer so any help is appreciated! Thanks so much.
Can you try the below trigger on ContentDocument object.
If this solution helps, Please mark it as best answer.
Thanks,
Try Below Code Please Mark It As Best Asnswrer If It Helps
Thank You!
@CharuDutt Thanks so much and apologizes for the late response , but the code isn 't working as expected.
If that is specific to any of your objects just replace the below line '006' with the starting of the Id of the object. Like for Account it starts with 001 and for Contacts it starts with 003
Let me know if you need any further details on it.
Thanks,