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).
It shows lowercase true saved in the boolean variable. But the Input for the Respond action shows a capital T
Thank you, that technically works, but my OCD wants PowerApps to properly process a boolean.
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.
I think this link will help you:
Best Regards,
Levi
rpersad
16
David_MA
10
Super User 2025 Season 1
Michael E. Gernaey
8
Super User 2025 Season 1