I'd like to know how I can get list of all the documents located in 'My Personal Documents' folder. For other folders I can write something like this:

SELECT Id, Name FROM Document WHERE FolderId =: myFolderId

The problem is that I can't find out id of 'My Personal Documents' folder. Simple queries like the following doesn't help too:

SELECT Id FROM Folder WHERE Name = 'My Personal Documents'

[SELECT Id, Name FROM Document WHERE FolderId = :MYUSERID]

It looks like it's not really a folder... :)

  • 2
    This is true for all folder types-- reports, dashboards, email templates, and documents.
    – sfdcfox
    Feb 12 '15 at 22:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.