web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using a variable insid...
Power Automate
Answered

Using a variable inside outputs-expression

(0) ShareShare
ReportReport
Posted on by 7

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

 

Categories:
I have the same question (0)
  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

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

     

  • Lgoergen Profile Picture
    7 on at

    Hello Anna,

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

     

    Best wishes,
    Lukas 🙂

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard