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
hoagieryderhoagieryder 

Trigger on Notes and Attachments in Custom Object

I am having trouble writing a trigger based on the notes and attachments trigger within a custom object. I can find the standard Attachment object, just not the one in my custom object. Any ideas?

*werewolf**werewolf*

There is no separate Attachment object for your custom object -- the Attachment object is the one and only place where attachments go.  Use its ParentId field to discover which ones are attached to the custom object in question.

hoagieryderhoagieryder

Thanks for the response. I was able to lookup the parentID's in the Attachment object and match them to my custom object.