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
tannershamrock2tannershamrock2 

APEX Trigger Not Firing on After Insert

So, I created a Trigger to fire on After Insert for the Notes object.  It works perfectly fine, both in Test and Production.

I copied this code exactly, but modified to use with the Attachment object.  It runs perfectly fine in Test mode.  I can step through the logs entirely and everything ran as expected.

When I try to run the Attachment After Insert trigger by actually creating the attachment in the UI, nothing happens at all.  I have even removed all logic to basically allow it to do this:  1) After Insert, change the Parent object's checkbox to = TRUE.  This does not even work.

Does Salesforce not allow After Inserts on Attachments?