Skip to main content

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

2 answers
  1. Aug 4, 2022, 6:52 PM

    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