You need to sign in to do that
Don't have an account?
Juan Pablo Escobar
Trigger on note
Hi,
I created a trigger on Note and its not firing when adding a Note to any type of record (Accounts or Contacts)
A few considerations:
Thanks!!
Pablo
.........
trigger NoteTriggerHandler on Note (after insert,after update, before insert, before update) {
NoteTriggerHandler handler = new NoteTriggerHandler();
handler.onAfterInsertUpdate(trigger.new);
}
I created a trigger on Note and its not firing when adding a Note to any type of record (Accounts or Contacts)
A few considerations:
- Trigger is Active ans it's very simple(see below)
- The New Note feature is active on my Org
- I was not able to create a trigger from the UI initially so I followed this process and it worked (i didn't get an error when saving it): https://ck-developer-salesforce-com.360casb.com/forums/ForumsMain?id=906F0000000AUhEIAW
Thanks!!
Pablo
.........
trigger NoteTriggerHandler on Note (after insert,after update, before insert, before update) {
NoteTriggerHandler handler = new NoteTriggerHandler();
handler.onAfterInsertUpdate(trigger.new);
}
I created the trigger at the ContentDocumentLink object and it is working OK now.
All Answers
I followed your step in my org and created Trigger on NOTE like below
Then create a new NOTE from Account record, it hit me assertion failure.
Could you please debug and found the stack trace from where it is failing.
Thanks,
Gaurav
Skype: gaurav62990
Support: gauravgarg.nmims@gmail.com
I created the trigger at the ContentDocumentLink object and it is working OK now.