Skip to main content
Hi I am looking to create a trigger that would allow ALL Notes in Salesforce Lightning to be editable across the board.  Right now when a note is created, it remains private and only editable by the Owner.  This object is quite finicky.

 

What would be the best way for me to get the ContactDocumentLink to inherit the SharingType of "I" for inferred.  This would allow the note to be made public and editable by anyone.  I believe it stemming from the LinkedEntityID.  Look forward to hearing the community's input. 

 

Thanks,

 

Mike  
1 answer
  1. Nov 25, 2020, 12:03 AM
    Hi Michael,

     

    Please check this article.

     

    Allow creation of Trigger on ContentNote object

     

    https://trailblazer.salesforce.com/ideaView?id=0873A000000EDCWQA4

     

    ContentNote is backed by the ContentDocument and ContentVersion entity but has the FileType of SNOTE.

     

     

    You can trigger on ContentNote insert or update by having a trigger on ContentVersion and checking if the FileType = 'SNOTE'.

     

     

    You can trigger on ContentNote delete by triggering on ContentDocument and checking if the FileType = 'SNOTE'.
0/9000