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 Automate / Populating a gallery w...
Power Automate
Answered

Populating a gallery with a filtered sharepoint document library using flow

(0) ShareShare
ReportReport
Posted on by 37

I need to populate a gallery with a collection of file properties filtered by a sharepoint document list using Flow.

I designed this sequence of flow steps:

  • Power apps button trigger
  • "Initialize variable", with the text inserted in a textbox
  • "Get SP files (only properties)"
  • "Array filter" to select only files that contain the search variable in the filename
  • "Respond to Powerapps"

Cattura.JPG

detail:

 

Cattura.JPG

 

I don't be able to export the filtered data to my collection (and fill my gallery items).

I tried to use "Respond to Powerapps" but I don't see the variable to link to "result".

 

Cattura.JPG

I found this problem with array variables and not with the string ones.

Please help me. Thank you in advance.

Daniele

 

 

Categories:
I have the same question (0)
  • Verified answer
    JohnAageAnderse Profile Picture
    1,986 on at

    Hello @ddf 

    To transfer the result from the Filter Array action back to the PowerApps, you have to convert it into a format that can be sent back.

    Then your PowerApps has to parse the data into a useful format 🙂

    Kind regards, John

  • ddf Profile Picture
    37 on at
    Thank you John.
    I made an upgrade to this post adding the join function but I still have a problem to obtain a result.
    Please look this new post if you can help me.
    Thanks again
    Daniele
    https://powerusers.microsoft.com/t5/Building-Power-Apps/Get-file-property-from-a-share-point-document-list-using-flow/m-p/530027
  • JohnAageAnderse Profile Picture
    1,986 on at

    Hello @ddf 

    The possible response formats does not allow you to pass back an array, so you have to JSON.stringify it first, then pass that back in the text response field.

    In my flow I have received an array of items, which I then stringify (like with JSON) and pass the result into the response field "result".

    ResponseToPowerAppsJSONStringify.png

    In you PowerApps, when I invoke the flow, I set a variable to hold the response.

    PowerAppsSetResultInVariable.png

    The variable is then used to fill my label with the result, which of course is still a stringified JSON.

     

    ResultInLabelTextFromVariable.png

     

    You now have the result, just need to convert it into something that PowerApps can work with (JSON.parse) 🙂

    Kind regards, John

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 177 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard