getReport - Methods - Reports API

Reports API Methods

getReport()

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.

Examples

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

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

Arguments

  • 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.