Posts

Showing posts from October, 2022

Query All Files or Notes in Salesforce

Image
Query All Files or Notes in Salesforce The new Note-taking tool uses the ContentNote object which is based on the ContentVersion (Salesforce Files) object. The Notes are related to other records like Accounts , Contacts , etc. via the ContentDocumentLink junction object. As an admin with “ Modify All Data ” and “ View All Data ” permission, you can export ContentNote and ContentVersion records that are explicitly shared with you or that you own. So what is the solution how do we export all the files and notes from an org? In order to be able to query all files, including files in non-member libraries and files in unlisted groups, you need to enable "Query All Files" permission for your backup user. This permission is disabled by default. "Query All Files" permission enables the ability to query ContentDocument and ContentVersion and retrieve all files in the org, including files in non-member libraries and files in unlisted groups. ____________________________