I want to be able to send a row, from a report, via email with only specific columns via the API.
The API docs clearly show you how to send a row via email however, I'm unable to get the column ids inside the report in order to send those specific columns. I'm using the following to try and output the column Title and Id. The title will show successfully however the IDs show blank. Is there a reason for this?
Report report = ss.ReportResources.GetReport(
reportid, // long reportId
null, // IEnumerable<ReportInclusion>
null, // int pageSize
null // int page
);
foreach(var Col in report.Columns)
{
Console.WriteLine($"Title:{Col.Title} ID:{Col.Id}");
}