Skip to main content

Notifications

Power Apps - Power Apps Pro Dev & ISV
Suggested answer

Power Apps: Flow Output Returning Boolean Instead of Number

(1) ShareShare
ReportReport
Posted on by 2

I am using Power Apps in conjunction with Power Automate to create a workflow. I have a button in Power Apps with the following OnSelect property:

Set(myOutput, CallMS2Flow.Run(Value(Lenght.Text)))
 

The CallMS2Flow is a Power Automate flow that is supposed to return a numerical value. However, when I hover over myOutput, it indicates that the data type is boolean. Because of this, I am unable to pass the myOutput value into a Text input, such as myOutput.def.

 

The flow has this output:


The schema for the flow output is:

{
"type": "object",
"properties": {
"def": {
"title": "def",
"x-ms-dynamically-added": true,
"type": "number"
}
}
}

How can I correctly capture the numerical output from the flow and use it in Power Apps?

  • CU07111429-0 Profile Picture
    CU07111429-0 2 on at
    Power Apps: Flow Output Returning Boolean Instead of Number
    Thanks @Anchov

    Point no 1 helped me. Refresh was needed.
  • Suggested answer
    venturemavenwil Profile Picture
    venturemavenwil 212 on at
    Power Apps: Flow Output Returning Boolean Instead of Number
    This may be confusing but it is showing that myOutPut is a Boolean value because you defined myOutPut as the Power Automate run and not the output itself. 
     
    If you want to capture the output of a Power Automate run, you need to capture it immediately after running the flow, or in other words:
    Set(myOutput, CallMS2Flow.Run(Value(Lenght.Text)).def)
    This will allow you to run the flow and capture the response as defined. 
  • Anchov Profile Picture
    Anchov 1,984 on at
    Power Apps: Flow Output Returning Boolean Instead of Number
    My suggestion is to:
    1.  Refresh the data connection to your Power Automate, and see if that resolves your error:
    2. Try to set your OnSelect property to:
    Set(myOutput, CallMS2Flow.Run(Value(Lenght.Text)).def)

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,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard