+ Start a Discussion
RobinWRobinW 

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?

 

KR,

R

Vinita_SFDCVinita_SFDC

Hello,

 

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.