Skip to main content

Does anyone know what table in SQL stores the files or attachments in Salesforce?

2 个回答
  1. 2022年8月4日 18:52

    Hi @Marie-Claire Arkoulakis

     

    Actual binary files stores in ContentVersion object in salesforce. 

     

    When you insert a ContentVersion, a ContentDocument record is also created automatically which is parent of ContentVersion, and using the parent ContentDocument salesforce creates a record for ContentDocumentLink which holds info with how many users a file has been shared. 

     

    ContentDocument - Parent - DML not allowed salesforce managed itself

    ContentVersion - Child of CD - All DMLs are allowed

    ContentDocumentLink - Child of CD - All DMLs are allowed

     

    I hope it helps

0/9000