Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
c# Smartsheet API: Can Not Get ColumnId
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();
}
}
}
Comments
-
Bunyamin,
I see you already posted on Stack Overflow.
https://stackoverflow.com/questions/46504095/c-sharp-smartsheet-api-can-not-get-columnid
As you see from Kim's response (and yours to hers), that is the best place I have found for prompt and useful responses to API problems and questions.
API questions on the Community may get answered, eventually, but not nearly as quickly as over on Stack Overflow.
In my experience.
If you haven't already, you should sign up for updates on the smartsheet-api tag and over on GitHub for the updates. They aren't announced elsewhere very prominently (in my opinion).
Craig
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives