+ Start a Discussion
NewbyVFNewbyVF 

Validating Attachments.

I would like to not allow attachments if a field, like  "Order Status"  equals "Processed".  Is there anyway of doing this?
Pavan Kumar KajaPavan Kumar Kaja
Hi,

Its not  possible through validation rule. You have to write a trigger on attachment object before insert check parentid object "Order Status"  equals "Processed". then throw error.