Query All Files or Notes in Salesforce
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.
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.
_________________________________________________________________________
Steps to enable the permission for users:
- Set Up > Permission Set > New.
- Enter the preferred details.
- Click Save.
- Click App Permissions.
- Click Edit,
- Navigate to "Query All Files".
- Check the "Query All Files" checkbox.
- Click Save.
- After that, click Manage Assignments.
- Click Add Assignments.
- Check all Users you want to add, then click Assign.
Resource:
ContentNote ERD: ContentNote
Release note: Query All Files
Comments
Post a Comment