Update and row id with SQl connector Azure Logic apps

ⅰ亾dé卋堺 提交于 2021-02-10 05:51:10

问题


So i have a little problem here.

The Update sql connector in azure, how do i dynamically update a row by dynamically specifying the row_id.

ROW_ID:

I tried having:

@string(actions('Converter')['outputs']['body']['Id'])

inside there, from a previous action but it didnt work i get an error.

is there any good way of doing this?


回答1:


I just managed to get that to work after some struggling.

The problem seems to be that you can't select dynamic content into the row id column because of some UI bug. By going into code view I would use the same expression as for the Id.

See example below on how I changed the path.

                   "Update_row": {
                    "inputs": {
                        "body": {
                            "Id": "@{item()?['Id']}",
                        },
                        "path": "/datasets/default/tables/Inquiries/items/@{encodeUriComponent(item()?['Id'])}"
                    }
                }



回答2:


You can refer to LogicApps WDL here for the in built functions support. For this case you can use @int()

Convert the parameter to an integer. For example, this function returns 100 as a number, rather than a string: int('100') Parameter number: 1 Name: Value Description: Required. The value that is converted to an integer.



来源:https://stackoverflow.com/questions/43481461/update-and-row-id-with-sql-connector-azure-logic-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!