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

I cannot find where in the 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)

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 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.5k questions

29.9k answers


99.1k users

Browse Categories