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

APEX Standard/Custom Reports based on Contacts/Leads

Hi All,


When using SOQL to retrieve an sObject of type Report, is it also possible to, on some way, retrieve the data source of the report?

I have for the moment a Select List containing a list of all my reports, but I want to filter the Select List to show only reports using a data source of Contacts or Leads.


Any ideas?







With SOQL on Report object you can only get details like Name, who and when it was created. If you wish to fetch data you can simply query on the object on which report is created with similar filters.