Where can I add a trigger for "Notes and Attachments" in salesforce.com?

I cannot find where in the salesforce.com user interface I can add a trigger to attach the file. I can find triggers in almost everything else, but the attachment does not seem to be on the list (even when I look at the source on the page and look at it. Does anyone know where I can enable this trigger?

+5
source share
4 answers

There is no way to do this directly, since Attachment is one of those "smaller" objects that salesforce really "protects" in a random and biased way. The only “legitimate” way to do this is to use some external build and deployment tools, such as the Force.com IDE.

If you are not a stranger with undocumented hacks, follow these steps: Go to any list of object triggers and click "Create New". In the URL, find the query string parameter entity(e.g. entity=Case) and change it to Attachment ( entity=Attachment) and press Enter. The new loaded screen will accept the Attachment trigger.

+5
source

Eclipse ( Force.com IDE), "" > "-". "", - "" "" .. - "", .

. (1) , , .

+3

, force.com IDE?

-, .

+2

To write a trigger for an attachment, there is no direct way to do this, but you can do it.

By creating a trigger for another object, for example, create a trigger in the contact object, then the URL of the current page shows "https://ap1.salesforce.com/........./&entity=Contact" you need to change " entity = Attachment "
then the trigger will be created for the binding object.

0
source

All Articles