简体   繁体   English

Azure 逻辑应用程序,SQL 更新行 v2

[英]Azure Logic Apps, SQL Update Row v2

I am trying to add an additional task to update a row in SQL Server after sending an email via sendgrid.在通过 sendgrid 发送 email 后,我正在尝试添加一个额外的任务来更新 SQL 服务器中的一行。

The options for updating a row seem to be missing the column name and value.更新行的选项似乎缺少列名和值。 The only additional parameter that can be added is called 'raw inputs' which isn't in the MS documentation.唯一可以添加的附加参数称为“原始输入”,它不在 MS 文档中。

Completing the available fields and running the process it correctly recognises the rowid that I would expect but I get this error:完成可用字段并运行它正确识别我期望的 rowid 的过程,但我收到此错误:

A value must be provided for item.必须为项目提供一个值。

I can't see where I could provide that value or the column in the row it should be applied to.我看不到我可以在哪里提供该值或应该应用它的行中的列。

Has anyone got this working?有没有人有这个工作?

https://docs.microsoft.com/en-gb/connectors/sql/#update-row-(v2) https://docs.microsoft.com/en-gb/connectors/sql/#update-row-(v2)

在此处输入图像描述

Yes it will only show the Row id , you need to choose Add new parameter then it will show Raw inputs , it's used to define the value you want to update.是的,它只会显示Row id ,您需要选择Add new parameter然后它将显示Raw inputs ,它用于定义您要更新的值。

Like the below pic, in my table there are visit_id and test two property, and then I update the test value with visit_id equal to 2.如下图所示,在我的表中有visit_idtest两个属性,然后我将test更新visit_id等于 2。

在此处输入图像描述

In the Raw inputs I use the json data.Raw inputs中,我使用 json 数据。

{"test":"123"}

在此处输入图像描述

Below is my test result, hope this could help you.下面是我的测试结果,希望对你有帮助。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM