How to find reports that are part of a Dashboard in Salesforce?

Sample SOQL:
SELECT Name, DeveloperName
FROM Report
WHERE Id IN ( SELECT CustomReportId FROM DashboardComponent WHERE DashboardId = '01Z5f000000VAB9EAO' )

Output:

No comments:

Post a Comment