function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PamSalesforcePamSalesforce 

Get Report Folder and Name in Apex

Is there a way to get the Folder names and the Reports in the folders using Apex.

Please help...Its urgent.

tggagnetggagne

Did you ever figure out how to do this?

PamSalesforcePamSalesforce

I had used APex to call SFDC webservice to get the list of reports along with thier folder. Here is the blog that helped me.

http://sfdc-heretic.warped-minds.com/2006/04/10/progmatic-access-to-salesforcecom-reports/

tggagnetggagne

Friday I discovered that in API 20, the Report and Folder tables are visible in the schema.  A report's ownerId is the Folder's ID.