I am trying to read data from Smartsheet using C# SDK. I can get sheet info but column details such as ColumnId are Null.
When I run the code below, I can get sheet and its columns. Bu only column name and type are filled, other properties of columns are Null.
What am I doing wrong?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Smartsheet.Api;
using Smartsheet.Api.Models;
using Smartsheet.Api.OAuth;
namespace SmartSheetTest
{
class Program
{
static void Main(string[] args)
{
string token = "MY_TOKEN";
long sheetid = MY_SHEET_ID;
SmartsheetClient sc = new SmartsheetBuilder().SetAccessToken(token).Build();
Sheet sheet = sc.SheetResources.GetSheet(sheetid, null, null, null, null, null, null, null);
Console.WriteLine("Done");
Console.ReadLine();
}
}
}
