Skip to main content
Steve Marcy (Paycor) 님이 Salesforce Files에 글을 올렸습니다

We use a simple trigger to prevent most users from deleting Attachments -- only if the Profile Name = System Administrator can the user delete the attachment.  Once we transform existing Attachments to Files, we need to ensure that even if someone is the Owner of the file they cannot delete it.  Will we have to write a similar trigger in order to prevent Files from being deleted by most users? 

댓글 1개
  1. 2018년 2월 9일 오후 11:00
    You can use the same type of trigger. Just switch it to be on ContentVersion -before delete
0/9000