This soql is not retrieving any records, any issue in soql ?
SELECT Id, Title, FileType, ContentSize FROM ContentDocument ALLROWS WHERE isArchived = true
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityThis soql is not retrieving any records, any issue in soql ?
SELECT Id, Title, FileType, ContentSize FROM ContentDocument ALLROWS WHERE isArchived = true
Looking at the docs for ALL ROWS, you have to place it at the end of your query, and is 2 keywords. For it to work, update your query to:
SELECT Id, Title, FileType, ContentSize FROM ContentDocument WHERE isArchived = true ALL ROWS
Please note the query editor does not support an ALL ROWS
query, so use anonymous apex to validate.