function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.