Skip to main content

Notifications

Community site session details

Community site session details

Session Id : VYF2mF3xC4jKcodopSRzdU
Power Apps - Building Power Apps
Unanswered

"Respond to powerApp or flow" empty result in powerApp

Like (0) ShareShare
ReportReport
Posted on 13 Aug 2020 14:45:10 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?

  • gstlouis Profile Picture
    on 06 Mar 2024 at 13:49:30
    Re: "Respond to powerApp or flow" empty result in powerApp

    I've recently run into this problem with respond to power apps.  Does anyone know if this is still a bug to this date?  I find it ridiculous that since 2020 this connector would still be a problem?

  • CU15101536-0 Profile Picture
    64 on 30 Aug 2023 at 14:08:19
    Re: "Respond to powerApp or flow" empty result in powerApp

    @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.

  • Pstork1 Profile Picture
    66,075 Most Valuable Professional on 17 Sep 2022 at 13:54:42
    Re: "Respond to powerApp or flow" empty result in powerApp

    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.

  • Alldayrr Profile Picture
    14 on 16 Sep 2022 at 20:47:21
    Re: "Respond to powerApp or flow" empty result in powerApp

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

  • Pstork1 Profile Picture
    66,075 Most Valuable Professional on 20 Aug 2021 at 02:52:28
    Re: "Respond to powerApp or flow" empty result in powerApp

    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.

  • DeeTronSEAM Profile Picture
    396 on 19 Aug 2021 at 20:20:13
    Re: "Respond to powerApp or flow" empty result in powerApp

    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
    66,075 Most Valuable Professional on 19 Aug 2021 at 19:29:29
    Re: "Respond to powerApp or flow" empty result in powerApp

    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 19 Aug 2021 at 16:48:06
    Re: "Respond to powerApp or flow" empty result in powerApp

    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"
        }
      }
    }

     

  • Santosh_143 Profile Picture
    8 on 10 Jun 2021 at 17:15:46
    Re: "Respond to powerApp or flow" empty result in powerApp

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

  • Syler42 Profile Picture
    9 on 13 Aug 2020 at 15:26:32
    Re: "Respond to powerApp or flow" empty result in powerApp

    I'm return boolean value and number:

    Syler42_0-1597332307461.png

    Should i reduce number of output parameters to just one ?

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…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,724 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard