You need to sign in to do that
Don't have an account?
Amidou Cisse
Hello Everybody, I need To test this trigger on ConctentDocumentLink : help
//BlockContentLinkTrigger trigger BlockContentLinkTrigger on ContentDocumentLink (before insert) { for(ContentDocumentLink contDocL : Trigger.new) { contDocL.addError('Pièce joint bloquée depuis objet ContentDocumentLink'); } }
Let us know if this will help you
All Answers
You have to fire a trigger on ContentVersion and query the ContentDocumentLink for more you can refer below link.
http://salesforce.stackexchange.com/questions/76015/trigger-on-contentdocument-not-working
Thanks
Lokesh
Let us know if this will help you
It Run finaly, The problem came from the condition I made in contenVersion which also blocked contentDocumentLink