问题
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