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
Asel Vazir 1Asel Vazir 1 

Trigger that will check if the attachment is uploaded when picklist value on custom objects has the value "Yes"

Please give me an example of the trigger that checks if the attachment is uploaded when the picklist value on the custom object is "Yes". 
SwethaSwetha (Salesforce Developers) 
HI Asel,

Though these are not exact, the below articles give an idea of trigger on attachments. You will need to customize according to your requirement

https://developer.salesforce.com/forums/?id=9062I000000g9kMQAQ
https://trailblazers.salesforce.com/answers?id=9063A000000e7T2QAI

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you