Skip to main content

Notifications

Power Automate - General Discussion
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

 

  • Lgoergen Profile Picture
    Lgoergen 7 on at
    Re: Using a variable inside outputs-expression

    Hello Anna,

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

     

    Best wishes,
    Lukas 🙂

  • Verified answer
    annajhaveri Profile Picture
    annajhaveri 8,531 on at
    Re: Using a variable inside outputs-expression

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

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard