0

Why SOQL 'select id name from folder' do not get 'My Personal Custom Folder' and 'Unfiled public reports'. But when I use 'select OwnerId from Report', it will return the reports under these two folders?

Is it expected? How can I get two folders when I only select in folder table?

1

Yes, it's expected. Personal folders are not "real" Folder records, but are instead represented by a User Id. Likewise, Unfiled Public Reports is not a real folder either, but instead a special Id that represents reports that have not been filed in any other folder. There is no way to get at these folders because they do not really exist.

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.