You need to sign in to do that
Don't have an account?
Jonathan Wolff 7
Trigger to prevent file delete with picklist value
Hello ,
I have a field on Content Version called Dokumentenklasse__c that has the type picklist. It is a required field for file upload
Can someone help me to write a trigger to prevent deletation of all files with the picklist value "Geschäftsbrief" in the dokument object field.
No user should be able to delete this files
I appreciate every kind of help.
Greetings
Jonathan
I have a field on Content Version called Dokumentenklasse__c that has the type picklist. It is a required field for file upload
Can someone help me to write a trigger to prevent deletation of all files with the picklist value "Geschäftsbrief" in the dokument object field.
No user should be able to delete this files
I appreciate every kind of help.
Greetings
Jonathan
Hi,
Please find the solution.
Do some Needful Changes according to your code.
Please mark it as the Best answer if it helps you.
Thank You
Could it be that it is not List<Attachments> ? or some fault like that
try this
Please let me know it is working or not?
Thanks