Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)

I cannot find where in the salesforce.com UI I can add a trigger on a file attachment. I can find triggers on almost everything else, but attachment seems to be missing from the list (even when I view source on the page and search it. Does anyone know WHERE I can put this trigger in?

1 Answer

0 votes
by (32.1k points)
edited by

You can't do it straight away as an Attachment. As an attachment is one of those "lesser" objects that salesforce really gets "protective" about in a random and biased way. The only "legit" way to do it is to use some external build&deploy tools such as Force.com IDE.

Or else, you can go to any object's trigger list and click on create new. In the URL locate entity query string parameter (e.g. entity=Case) and change it to Attachment (entity=Attachment) and press Enter. A new loaded screen will accept Attachment trigger.

Go for this in-depth job-oriented salesforce training online now!
 

Browse Categories

...