Skip to main content

Trigger to prevent deletion of Attachments

I have a custom object Orderregel__c with attachments. There is an approval process on the object Orderregel__c.

How do I write a trigger to prevent deletion of attachment (before delete trigger)?

Please some help im a newbie in this area.