
Announcements
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!
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:
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:
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