Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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:
  • JohnAageAnderse Profile Picture
    1,986 on at
    Re: Populating a gallery with a filtered sharepoint document library using flow

    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

  • ddf Profile Picture
    37 on at
    Re: Populating a gallery with a filtered sharepoint document library using flow
    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
  • Verified answer
    JohnAageAnderse Profile Picture
    1,986 on at
    Re: Populating a gallery with a filtered sharepoint document library using flow

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow