cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lgoergen
Frequent Visitor

Using a variable inside outputs-expression

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'])

 

Lgoergen_0-1661872206834.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
annajhaveri
Community Champion
Community Champion

@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'])

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
annajhaveri
Community Champion
Community Champion

@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'])

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Hello Anna,

thank you very very very much. That solved my problem adequate.

 

Best wishes,
Lukas 🙂

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (4,613)