如何从azure函数编辑azure存储表?

如何从azure函数编辑azure存储表?,azure,azure-functions,azure-table-storage,Azure,Azure Functions,Azure Table Storage,我可以使用下面的代码在表中添加新行 context.bindings.sampleTable = { "partitionKey": "11111111", "rowKey": "222", "deviceId": 1111, "messageId": 2222, "temperature": 3333, "humidity": 4444 }; context.done(); 现在我想编辑这个新添加的行,所以我用相同的partitionkey和rowkey尝试了相同的代码,但它给出了如下

我可以使用下面的代码在表中添加新行

context.bindings.sampleTable = {
"partitionKey": "11111111",
"rowKey": "222",
"deviceId": 1111,
"messageId": 2222,
"temperature": 3333,
"humidity": 4444
 };

 context.done();
现在我想编辑这个新添加的行,所以我用相同的
partitionkey
rowkey
尝试了相同的代码,但它给出了如下错误

Exception while executing function: Functions.CCCJSFunc. Microsoft.Azure.WebJobs.Host: Error while handling parameter _binder after function returned:. Microsoft.WindowsAzure.Storage: The specified entity already exists.
所以请纠正我。

该线程解决了相同的问题。目前,如果您需要任意更新/删除等,则必须手动使用

您可以查看这篇博文:了解解决方法