2
我正在使用节点和Azure函数使用在functions.json中定义的绑定来更新我的天蓝色表。我能够使用out绑定插入行,但找不到有关如何更新它们的任何文档。如何使用绑定更新Azure函数中的Azure表格行?
Functions.json
{
"tableName": "myTable",
"connection": "myTableConnectionString",
"name": "tableBinding",
"type": "table",
"direction": "out"
}
函数定义
Promise.map(loaders.map(e => e.getData()), (data) => {
context.log("pushing to azure table");
context.bindings.tableBinding.push({
PartitionKey: data.key,
RowKey: data.key,
Value: data.Value
});
})
.then(() => {
context.log("Completed all data retrieveal tasks");
context.log('JavaScript timer trigger function ran!', timeStamp);
context.done();
});
以上,再次调用功能没有任何影响。
我知道我可以使用sdk来手动更新表格,但我想使用绑定并尽可能简单地保持功能。
我挂这个帖子给你上面链接错误的问题。我们会考虑得到这个支持,谢谢:) – mathewc
太棒了!那会很酷。感谢您的考虑。 –