getReport - Methods - Reports API

Reports API Methods


Returns a report interface used for interacting with an initialized report, based on the id of the report provided in the request object.

You must use this to access the interface for individual reports to make changes or retrieve the report data, for example.


// Retrieve the report with the ID "my-report-id"
var myReport = reportsApp.getReport('my-report-id');

// Retreive the data from the report
var myReportData = myReport.getData();


  • reportID string

    The report ID to retrieve.

Return value

Type report

An object interface with methods to interact with the report.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.