有没有办法根据列值而不是行 ID 查找/更新行?

Is there a way to find / update a row based on column values instead of the Row ID?

我有一个 C# 应用程序可以将数据发送到 Smartsheet。目前,它只是插入行,基于以下内容:

Row rowA = new Row.AddRowBuilder(null, true, null, null, null).SetCells(cellsA).Build();
smartsheet.SheetResources.RowResources.AddRows(_SheetID, new Row[] { rowA });

有两列本质上是数据的键,我希望能够更新存在的行(WHERE field1 = 'key1' and field2 = 'key2' ),如果不存在包含这两个字段值的行,则插入行。

是否可以像这样进行更新/插入?请记住,我是 Smartsheet 的新手 API - 还在摸索中...

非常感谢。

您今天需要手动执行此操作。目前没有要求 API 为您执行此操作的方法。

  • 欧文