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
Kuliza DevKuliza Dev 

How to get number of records in each report?

Reports = [select Id, Name from Report where Format = 'Tabular' order by Name];
          for(Report report : Reports)
              ReportModel rm = new ReportModel();
              rm.ReportId = (string)report.get('Id');
              rm.ReportName = (string)report.get('Name');
I'm trying to fetch the number of records in each Report. I tried using getRecords() but it is saying invalid function. I am flexible to implement this through Apex or SOQL. 
To fetch object level information of report you need to use metadata api way. 

Please go through :

Sandeep Singhal