Query Report by Folder and Report Type

#Salesforce #tips

1️⃣ Query all Reports belonging to a folder

SELECT Id, name,Format, Description FROM Report where FolderName = '<foldername>'

2️⃣ Query all Reports for a specific Custom Report type

SELECT Id, name,Format, Description FROM Report where ReportTypeApiName = '<API name of custom report type>'