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

Well, as of now, there is no way to do this straight away as an attachment. It is one of those "lesser" objects that salesforce especially gets "protective" about in a random and biased way. The only way to do this is to use some external build&deploy tools such as Force.com IDE.

So, for this, go to any object's trigger list and click on create new. In the URL find entity query string parameter (e.g. entity=Case) and modify it to Attachment (entity=Attachment) and press Enter. A new loaded screen will then accept Attachment trigger.

If you are planning to break into the Salesforce domain, and are not sure where to start, I would recommend you start by enrolling yourself in a Salesforce course from Intellipaat!

Browse Categories

...