I need to prevent ALL Users from creating a new Enhanced Note (we ended up creating our own object because we needed more customization). I'm trying to write a trigger but am getting stuck on an error. Any help would be apprediated!
trigger NoteBlockCreate on ContentVersion (before insert) {
for(ContentVersion cv:trigger.new){
if(cv.FileType = 'SNOTE')
{
cv.adderror('Please use new notes');
}
}
}
The error I get is: Field is not writeable: ContentVersion.FileType