Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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)
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 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.
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94k users

Browse Categories