I hope I can get the rows of data as a list of specific columns in C #. Therefore, if there was a column of heights of a person, he would list these heights in the list. It is also possible to list the values ββof x, y, for example, the number of apples on a certain date.
I looked at examples of the API data and cannot find examples of how to do this - they mainly consist of creating folders, users, or listing folders or sheets, or entering information about smartsheets, etc., but no one actually gets the data.
Here is the code I was looking at: https://github.com/smartsheet-platform/samples/tree/master/c%23 https://github.com/smartsheet-platform/smartsheet-csharp-sdk
But I really would like to pull the data in a list, and then process it a bit in C # for end users, so I don't want to return it to smartsheets.
Is this the only way to do this, to download the file as an Excel worksheet using the API and from there? Did I really want to skip this step, if at all possible?
I must add that I want to use the C # SDK for this.
The specific code that I think I need to enter (I think) is to get the sheet.
// Set the Access Token Token token = new Token(); token.AccessToken = "INSERT_YOUR_TOKEN_HERE"; long id = "INSERT SHEET ID HERE"; // Use the Smartsheet Builder to create a Smartsheet SmartsheetClient smartsheet = new SmartsheetBuilder().SetAccessToken( token.AccessToken).Build(); //Code to get sheet smartsheet.Sheets().GetSheet(long id, **IEnumerable<ObjectInclusion?includes**).Rows();
This is the last parameter that I'm not sure what they need. He says in the GetSheet method:
GetSheet (long identifier, IEnumerable includes)
Here is a link to the ObjectInclusion enumeration - http://smartsheet-platform.imtqy.com/smartsheet-csharp-sdk/html/T_Smartsheet_Api_Models_ObjectInclusion.htm