Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

PowerApps gets booelan variable instead of string output of Flow

(0) ShareShare
ReportReport
Posted on by 4

I have a Flow which processes a HTTP request and saves one of the properties value of the JSON response into a String variable. It runs succesfully:

ss.png

 

I'd like to assign this variable to a label at my Power Apps application as I click on an Icon which triggers the Flow. I use the Set([variablename][myFlow.RUN(...)]) in order to get the results into a new variable. However, the variable I get is type of Boolean, not the String value of the Initialize variable step.  

I've also tried to use Compose function in the Flow, and store the result in a collection. I got a Boolean too.

(And I've tried many times to re-assign the Flow and the collection/variable in my app.)

 

How could I get that URL as a text of a label in my app? 

  • jcregg Profile Picture
    19 on at
    Re: PowerApps gets booelan variable instead of string output of Flow

    @kbene91 Not sure if you are still having trouble with this but I just had the same issue. My Flow had a response to to canvas app with a string but my variable was set to Boolean so I could only set the output to true or false.

     

    I have got round it by adding a dummy button and creating a new connection to my flow. This created a new connection and I renamed my original trigger to use that connection name. The variable now shows as a Records and it works fine. Hope that helps.  

  • kbene91 Profile Picture
    4 on at
    Re: PowerApps gets booelan variable instead of string output of Flow

    Thank you for your answer.

     

    Basically, I just want to upload the pictures I take with my app. So the Flow processes the file, uploads it via the API I call and in the response message we get the data of the uploaded image. Here is a screenshot:screen2.png

     

    It works fine, I just can't get the response data back into my App. I have also to tried to set the Schema of the JSON body to type of array (instead of object) and Collect the response into a Collection, so it looks like this:

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "id": {
     "type": "string"
     },
     "title": {},
     "description": {},
     "datetime": {
     "type": "integer"
     },
     "type": {
     "type": "string"
     },
     "animated": {
     "type": "boolean"
     },
     "width": {
     "type": "integer"
     },
     "height": {
     "type": "integer"
     },
     "size": {
     "type": "integer"
     },
     "views": {
     "type": "integer"
     },
     "bandwidth": {
     "type": "integer"
     },
     "vote": {},
     "favorite": {
     "type": "boolean"
     },
     "nsfw": {},
     "section": {},
     "account_url": {},
     "account_id": {
     "type": "integer"
     },
     "is_ad": {
     "type": "boolean"
     },
     "in_most_viral": {
     "type": "boolean"
     },
     "has_sound": {
     "type": "boolean"
     },
     "tags": {
     "type": "array"
     },
     "ad_type": {
     "type": "integer"
     },
     "ad_url": {
     "type": "string"
     },
     "edited": {
     "type": "string"
     },
     "in_gallery": {
     "type": "boolean"
     },
     "deletehash": {
     "type": "string"
     },
     "name": {
     "type": "string"
     },
     "link": {
     "type": "string"
     }
     }
     },
     "success": {
     "type": "boolean"
     },
     "status": {
     "type": "integer"
     }
    }

    So my Flow ends with the response data like this:

    {
     "data": {
     "id": "dfgdfh",
     "title": null,
     "description": null,
     "datetime": 1341455,
     "type": "image/png",
     "animated": false,
     "width": 640,
     "height": 480,
     "size": 389202,
     "views": 0,
     "bandwidth": 0,
     "vote": null,
     "favorite": false,
     "nsfw": null,
     "section": null,
     "account_url": null,
     "account_id": 0,
     "is_ad": false,
     "in_most_viral": false,
     "has_sound": false,
     "tags": [],
     "ad_type": 0,
     "ad_url": "",
     "edited": "0",
     "in_gallery": false,
     "deletehash": "4wz",
     "name": "",
     "link": "https://i.imgur.com/xxxxx.png"
     },
     "success": true,
     "status": 200
    }

    And I got the properties in my new Power Apps colelction, but it seems like an empty array:ss4.PNG

     

  • v-litu-msft Profile Picture
    on at
    Re: PowerApps gets booelan variable instead of string output of Flow

    Hi @kbene91,

     

    Could you please share screenshots of your Flow configuration?

    I am not sure you can get a variable in the Flow to PowerApps request. The result from Flow is boolean.

    As a workaround, you can create a column in the list named ImageURL, one it got in Flow, store in the list, you can hide it, then you can get the column value in the PowerApps text label.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 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,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow