【发布时间】:2017-07-25 17:24:27
【问题描述】:
通过 C# SDK 检索工作表时,所有单元格值都为空。 API 是否有访问级别或 C# SDK 是否存在错误?我可以得到列名和id就可以了。
SmartsheetClient ss = new SmartsheetBuilder().SetAccessToken(myToken).Build();
long sheet_ID = 0000000000000000;
Sheet sSheet = ss.SheetResources.GetSheet(sheet_ID, null, null, null, null, null, null, null);
lblFeedback.Text = "Sheet: " + sSheet.Name + " <br>Rows: " + sSheet.Rows.Count.ToString();
这很好,所以我知道我正在访问我想要的工作表,https://github.com/smartsheet-samples/csharp-read-write-sheet/blob/master/csharp-read-write-sheet/Program.cs 的示例列映射也是如此
不过……
Cell completedCell = getCellByColumnName(r, "Completed", columnMap);
string cellValue = completedCell.DisplayValue;
cellValue 为空。 除 ColumnId 之外的任何单元格属性都返回 null。我做错了什么?
【问题讨论】:
标签: smartsheet-api