Activity › Forums › Salesforce® Discussions › How to query a file body in Salesforce? Salesforce® Discussions How to query a file body in Salesforce? Posted by Aditya on January 18, 2021 at 7:09 AM How to query a file body in Salesforce? Anjali replied 5 years, 4 months ago 2 Members · 1 Reply 1 Reply Anjali Member January 18, 2021 at 2:26 PM By querying versionData of contentVersion corresponing to the contentDocumentId, you can get the file body. It is in base64 format, so it needs to be converted to know the actual file body. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me