web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Trouble Displaying Pow...
Power Apps
Unanswered

Trouble Displaying Power Automate Output in Power Apps Label and Gallery

(0) ShareShare
ReportReport
Posted on by 2

 

Hello,

I'm working on a Power Apps application that triggers a Power Automate flow. The flow returns a JSON object that I'm trying to display in a Power Apps label or gallery. However, I'm encountering several issues:

 

1. When I try to set the label's text to the output variable (`FileList`), I get an error saying "incomparable types of comparison, these types cannot be compared."

2. When I try to use `FileList.listoffiles` to access a specific property of the JSON object, I get an "invalid use of '.'" error.

Here's a snippet of my Power Apps code for reference:

 


Set(
FileList,
ClickabuttoninPowerAppstosendanemail.Run(JSON(CombinedSelectedItems, JSONFormat.IncludeBinaryData))
);

 

The output from Power Automate is in the following format:


{
"listoffiles": "['AMACE_URS_1.0.md', 'AMACE_URS_x.0.md']"
}

 

Could anyone please help me understand what I'm doing wrong and how to correctly display this output in Power Apps?

Thank you!

 

Categories:
I have the same question (0)
  • Verified answer
    ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    Hi @FallenAsh , The output that you are receiving from Power Automate is of type string and that is reason you are facing this issue. As per your information, it seems you wanted to return an array from Power Automate and you want to display that array as item property of gallery? If yes, then do you have premium license? If yes, then you can use response action:

    ANB_0-1698507284830.png

    Check this for response action : https://softchief.com/2021/07/12/http-requests-and-responses-in-a-flow-demo-using-power-automate/

    If you do not have premium license then check this:

     https://www.matthewdevaney.com/power-apps-parsejson-function-get-collection-from-a-flow/#:~:text=Use%20The%20ParseJSON%20Function%20To%20Create%20A%20Collection,-When%20a%20button&text=Insert%20a%20new%20button%20and,an%20untyped%20object%20using%20ParseJSON.

     

    These thing can help you, if you return the output to PowerApps in form of array or collection.

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard