+ Start a Discussion
shiv@SFDCshiv@SFDC 

Content Document

Hi All,

I am asking you this question after doing so much resarch on file functionality of SFDC.

I want to know when we upload a file in salesforce through chatter, In actully where this files stroes in salesforce.

Content document only has the information about the file not the body of the file. I want to know where the acturl body of the file is saved. 

After uploading file when I goes to file and open in salesforce I see thir record Id '069R00000009ICF'   In this Id 069 is the Id of content document objecy but when i see structure of content document in SFDC Doc I don't see any body field over there.

Please let me know how acturlly it's working.

Thank You very much in advance.


Best Answer chosen by shiv@SFDC
Pratik_MPratik_M
Hi Shiv,

If you check the documet, it's mentioned at the end:
A document record is a container for multiple version records. You create a new version to add a document to the system. The new version contains the actual file data which allows the document to have multiple versions. The version stores the body of the uploaded document.

Link:https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocument.htm

All Answers

Pratik_MPratik_M
Hi Shiv,

Both the files and content gets stored in ContentDocument object. You can refer to this link to check the underlying data model :
https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_erd_content.htm#sforce_api_erd_content

Also you can refer to document: https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocument.htm

Thanks,
Pratik
shiv@SFDCshiv@SFDC
Hi Pratik,

Can you please tell me where is the body of file stored ?
Pratik_MPratik_M
Hi Shiv,

If you check the documet, it's mentioned at the end:
A document record is a container for multiple version records. You create a new version to add a document to the system. The new version contains the actual file data which allows the document to have multiple versions. The version stores the body of the uploaded document.

Link:https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocument.htm
This was selected as the best answer