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 / "Respond to powerApp o...
Power Apps
Unanswered

"Respond to powerApp or flow" empty result in powerApp

(0) ShareShare
ReportReport
Posted on by 9

Hi,
I'm trying to get some response from power automate flow, but in powerApp i always has empty record.
Ok, what have i done so far:

I've a flow triggered from power apps which has some parameters and run child flow, flows seems to work as expected:

Syler42_0-1597329352725.png


But when i run flow form power apps by that code:
UpdateContext({ InitializeApprovalResult: InitializeApproval.Run());

And try to make same conditional action on this:
If(InitializeApprovalResult.success, "something1", "something2"); 

Nothing happend, neither negative or positive condition result.
Additionaly my record variable after run flow is always empty:

Syler42_1-1597329783598.png

I tried use UpadteContext() and Set() functions but i changes nothing ?
What i am doing wrong ?
Any thoughts on this?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,554 Most Valuable Professional on at

    What type of data did you pick for the flow to return?  That defines the data type.  In my experience the only way to pass objects or arrays is to use the HTTP Response action, which is premium.  The respond to Power apps can return one or more simple values.  you can see in the screenshot below the data types that you can return

    image.png

    In your case you should have picked Yes/No and called it Success or something like that.

  • Syler42 Profile Picture
    9 on at

    I'm return boolean value and number:

    Syler42_0-1597332307461.png

    Should i reduce number of output parameters to just one ?

  • Santosh_143 Profile Picture
    8 on at

    I am also facing the same issue . Let me know if you over come that

  • DeeTronSEAM Profile Picture
    396 on at

    I have the same problem.  I.e. I am getting a response in PApps from my Flow, but only the string parameters contain values.  The boolean and the number parameters I'm trying to return show up inside the app as null despite the fact that testing the flow shows its output contains quatationMark-wrapped values (e.g. "250" and "true").  Per other forum posts, I tried wrapping the parameter values in an expression in Flow to attempt a force to numeric (integer), but nothing changed.  The output of the respond action in Flow shows the Schema for the response with the appropriate data types for those two fields, so perhaps Flow is confusing PApps by providing the schema saying it will be a number but then it comes over like a string?

     

    Here is the response action (image) plus the schema (below)

     

    DeeTronSEAM_0-1629391629583.png

     

    {
      "type""object",
      "properties": {
        "actionsremaining": {
          "title""ActionsRemaining",
          "x-ms-dynamically-added"true,
          "type""number"
        },
        "nextrefilldate": {
          "title""NextRefillDate",
          "x-ms-dynamically-added"true,
          "type""string",
          "format""date"
        },
        "subscribedrefillquantity": {
          "title""SubscribedRefillQuantity",
          "x-ms-dynamically-added"true,
          "type""number"
        },
        "subscriptionenabld": {
          "title""SubscriptionEnabld",
          "x-ms-dynamically-added"true,
          "type""boolean"
        }
      }
    }

     

  • Pstork1 Profile Picture
    69,554 Most Valuable Professional on at

    There is a bug in the Respond to Power Apps.  Numbers and Booleans don't work consistently as part of the return value.  MS is working on it.

  • DeeTronSEAM Profile Picture
    396 on at

    Thanks, @Pstork1 !  And, while I am at it...thank you for all your other postings around the forum I've learned from.  Your sharing of your experience and expertise is much appreciated!

     

    I'm assuming my two workarounds are only:

    1) Change the boolean and number output parameters to strings and do the conversion to bool and int once I get the values back over in PApps.

    2) Use the HTTP Response action as described here: https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/ 

     

    Do you have any other workarounds or warnings about those workarounds, @Pstork1 ?

  • Pstork1 Profile Picture
    69,554 Most Valuable Professional on at

    Correct on both counts.  I'm hoping MS can find the bug and fix it soon.  I'll try to post back when I hear there is a patch coming.

  • Alldayrr Profile Picture
    14 on at

    Any status if the bug is fixed? I'm running into this same response issue.

  • Pstork1 Profile Picture
    69,554 Most Valuable Professional on at

    MS did suggest a third workaround that seems to work for me.  When running the flow with the response for the first time hard code any numbers that you are passing (rather than using variables). After you've run it once you can switch it back to variables and use the variables.  Something about running it with static numbers the first time helps Power Apps set the schema correctly for the response coming from Power Automate.  Its still a workaround, but in my experience it works. Also, in my experience bugs like these that involve two development teams take a very long time to get fixed.

  • CU15101536-0 Profile Picture
    65 on at

    @Pstork1 

    I confirmed that worked!
    I wanted to get the ID of a new item created on a Sharepoint List, replace the dynamic with a fixed number value, run it, then go back to the flow and change it back to the dynamic value.
    For this instance, I changed the value format to ensure that the value was a number using the "inter() function.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard