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 Apps / Getting a response fro...
Power Apps
Answered

Getting a response from Power Automate to PowerApps

(0) ShareShare
ReportReport
Posted on by 362

Hi,

 

I am trying to get a response from a Power Automate flow to PowerApps.

 

I have a label in PowerApps that should appear once the flow has successfully run.

I’ve set the Visible property of the label to variable varLabelVisible. The variable value should be set to true by the workflow, once successfully run, therefore making the label visible.

 

A button triggers the flow. Its OnSelect property is set to:

 

Set(varLabelVisible,Flow.Run(…))

 

The flow runs successfully, giving the following output for the Respond to a PowerApp or flow action:

{

  "varLabelVisibleValue""True"

}

 

however, it doesn't seem to trigger the desired action in PowerApps, as the label does not appear at the end of the flow run. 

 

I suspect I might have grossly misunderstood how the Respond to a PowerApp or flow action is supposed to work and what is the correct syntax to be used in PowerApps to retrieve the value from the flow.

 

Thank you for your help!

Categories:
I have the same question (0)
  • shoog Profile Picture
    2,164 on at

    The flow response will always be a JSON object, even when you're just passing one value.

    For your flow call, changing it to

    Set(varLabelVisible,Flow.Run(…).varLabelVisibleValue)

    should fix this.

     

    Make sure the output of the flow is really a boolean, since that what your app expects. It looks like a text value now, I'd expect true instead of "True".

  • Gilmour Profile Picture
    362 on at

    Hi @shoog , thank you for your reply! I will give it a try. In the meantime, here is how I set up the output in the flow:

     

    Gilmour_0-1665663758281.png

     Does it look correct?

     

    Thank you

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Gilmour ,

     

    The returned value is of type Text, rather than Boolean. You can try below in Visible instead:

    varLabelVisible.'work completed' = "True"

     

    Best regards

  • Verified answer
    shoog Profile Picture
    2,164 on at

    Better change the response to a Yes/No value or modify the code a bit to convert the datatype in your app:

    Set(varLabelVisible,Flow.Run(…).varLabelVisibleValue = "True")

    This way the varLabelVisible in PowerApps will be a boolean, while you don't have to change the datatype in your flow.

  • Gilmour Profile Picture
    362 on at

    Thank you so much @shoog ! Unfortunately I met another snag... The statement gives me an error, because the Flow.Run has over 50 levels of nesting (it's a very long series of inputs). So I'll have to break up the flow to be able to test your code... Will give it a try! Thank you again!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard