Hey all, I hope I post inside the right section. I'm trying to use a variable inside an outputs-expression but can't find any working solution. Maybe someone is able to help me reolving this issue and getting my flow to work :).
Background:
I built a flow, where depending on the input (data from a new sharepoint element) different actions are happening.
These actions should use dynamic values. I came up with a solution using http-request and everything is working fine except the following:
I send a http-request to update a list-element. For this list-element there should be two columns updated. For the first column it is no problem, because the name of the column is always the same. The second column that should be updated has a dynamic name depending on the given input. So i want to include this dynamic name inside the outputs-expression to get the value of this element in this column to add a number and change it with the http request.
I hope i formulated understandable.
add(outputs('Element_abrufen')?['body']?['ID_DynamicNumberAsANameHere'],triggerOutputs()?['body/Anzahl'])
Hello Anna,
thank you very very very much. That solved my problem adequate.
Best wishes,
Lukas 🙂
@Lgoergen use below expression, initialize variable with name ColumnName and store value of that dynamic column name in that variable.
add(outputs('Element_abrufen')?['body']?[concat('ID_',variables('ColumnName'))],triggerOutputs()?['body/Anzahl'])