GetReport() public method

Gets the Report, including one page of Rows, and optionally populated with Discussions, Attachments, and source Sheets.

It mirrors To the following Smartsheet REST API method: GET /reports/{reportId}

This method returns the top 100 rows. To get more or less rows please use the other overloaded versions of this method
if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public GetReport ( long reportId, IEnumerable includes, int pageSize, int page ) : Report
reportId long the Id of the report
includes IEnumerable used To specify the optional objects To include.
pageSize int (optional): Number of rows per page. If not specified, the default value is 100. /// This operation can return a maximum of 500 rows per page.
page int (optional): Which page number (1-based) to return. /// If not specified, the default value is 1. If a page number is specified that is greater than the number of total pages, the last page will be returned.
return Report
Example #1
0
        public virtual void TestGetReport()
        {
            server.setResponseBody("../../../TestSDK/resources/getReport.json");
            Report report = reportResource.GetReport(123123L, null, null, null);

            Assert.AreEqual(2, report.Columns.Count);
            Assert.AreEqual(1, report.Rows.Count);
            Assert.AreEqual(2, report.Rows[0].Cells.Count);
        }