Skip to main content

Notifications

Community site session details

Community site session details

Session Id : lv84ICShGzF311niGFqJ08
Power Automate - General Discussion
Unanswered

Respond to PowerApp action returns inconsistent boolean value

Like (1) ShareShare
ReportReport
Posted on 13 Dec 2022 22:29:33 by 41

I have a flow that initializes a boolean "success" variable as false, does work, then sets the variable to true and returns that value as a yes/no response to PowerApps action. I have other flows that do this and they return true as expected. However, this flow returns True and my PowerApp doesn't like it.

In the PowerApp I initialize the variable as a false boolean. Then I have a button that runs the flow and stores the response. After it runs successfully I go to check the variables and it doesn't even say it's set to true. It says No Value like it wasn't able to process True with the capital T.

 

pseudo code:

PowerApp -

AppStart

Set(Step2Success, false)

2nd Screen

Set(WorkflowRunning, true);
Set(Step2Success, WorkflowName.Run(item.ID).status);
Set(WorkflowRunning, false);

PowerAutomate -

Initialize Variable action - success as Boolean = false

Scope All Workflow Work

last action in this scope is Set Variable action - success = true

Respond to a PowerApp or flow action - Yes/No output "Status" = variables('success')

Checking the run history the flow shows True is returned. And Step2Success says No Value in variables tab of PowerApps.

As I mentioned, I took this approach with other flows and looking at the output of the respond action it is lowercase true returned and the PowerApp variable is updated properly (Step1Success is actually this way).

  • jhicks Profile Picture
    41 on 14 Dec 2022 at 21:47:02
    Re: Respond to PowerApp action returns inconsistent boolean value

    It shows lowercase true saved in the boolean variable. But the Input for the Respond action shows a capital T

    jhicks_0-1671054422829.png

     

  • jhicks Profile Picture
    41 on 14 Dec 2022 at 20:12:26
    Re: Respond to PowerApp action returns inconsistent boolean value

    Thank you, that technically works, but my OCD wants PowerApps to properly process a boolean.

  • v-liwei-msft Profile Picture
    on 14 Dec 2022 at 03:19:33
    Re: Respond to PowerApp action returns inconsistent boolean value

    Hi @jhicks 

     

    1. Set the variable as a string variable in flow.
    2.Set the variable as a string (yes in my test).
    3.Respond to a PowerApp or flow add that string as output.
    4. Use the If function in the App, if the return value is the string, the Set variable is true.

    vliweimsft_0-1670987914283.pngvliweimsft_1-1670987927033.png

    I think this link will help you:

    Solved: Re: Respond to a PowerApp or flow always respond f... - Power Platform Community (microsoft.com)

     

    Best Regards,

    Levi

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
rpersad Profile Picture

rpersad 16

#2
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

Overall leaderboard
Loading started