Hi aklkk, check this sample trigger(not tested), I wrote based on opportunity, you can extend this functionality to few more objects. if opportunity record already has an attachment it will throw an error otherwise it will insert attachment on record.
check this sample trigger(not tested), I wrote based on opportunity, you can extend this functionality to few more objects.
if opportunity record already has an attachment it will throw an error otherwise it will insert attachment on record.
Kindly mark this as solved if the reply was helpful.
Thanks
Shaik