function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JasonH_AllerganJasonH_Allergan 

Trigger on Notes & Attachments

I am very new to all this and have no idea of programming so...

 

I have a "helpdesk" style system within SF and each "ticket/record" has Notes / Attachments. When the ticket is "edited / created" e-mails get sent out to revelent people.

 

Now when the a Note or Attachment is added the record is not classified as "edited/updated" so i need to create a trigger to affectivly update the record when a note is created.

 

Any one know how to do this?

 

Thanks in advance

 

Jason

netTrekker_ADnetTrekker_AD

Can it not be done with a workflow rule and field update?

Pradeep_NavatarPradeep_Navatar

In my opinion, triggers can not be implemented on notes and attachment.

 

Explore the below link for more information :

 

http://community.salesforce.com/t5/Apex-Code-Development/Trigger-on-Attachment-before-insert-impossible/m-p/101035

 

Hope this helps.

JasonH_AllerganJasonH_Allergan

Many thanks for this information but sadly the link you provided i do not have access to, So it says.

 

I had a SF dev guy here the other day and although "notes and attachments" is a non-queryable object the indavidual objects "Notes" and "Attachments" are and the dev pointed me in this direction.

 

Any other way i can get hold of the information required?

yuliayulia

you can create trigger attachment in esclipse... i already try and success..