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 / Query data based on in...
Power Automate
Unanswered

Query data based on information from an array

(0) ShareShare
ReportReport
Posted on by 4
Hello, I have an application where the user is able to view reports, and it needs to allow the user to select documents and then have them emailed. 
 
Right now, I have set it up so that the document IDs are are saved to a collection, then brought over to Power Automate. The first step of my Flow is to Parse JSON. 
 
The issue is, I now have to Get File Properties using those IDs, and this is where I am having trouble. I am not too sure how to query the data so that it grabs all of the correct documents based on the IDs brought over from the application. Any help would be appreciated. 
Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,169 Moderator on at
    Hi,
     
    Here is the sample flow. I have used an input parameter of string type that holds the array of file Ids as integers. 
     
    If there are more than 100 files in document library then increase the pagination threshold size to 100000 from the setting of get files properties action
     
    Add compose action after get files properties action. In this action, add expression to convert string to an array of file ids. Expression needs to be added in the 'Function' window. Please replace array input variable name as used in your flow:
    Finally, add "Filter array" action to apply filter operation based on the array in output of compose action. Pass the body/value property from the output of get file properties in 'From' parameter. Similarly, pass the output of compose action and ID from get file actions while setting up filter query:
     
     
    OUTPUT:
     
    Passing value of input parameter:
     
     
    Output of filter array after flow execution:
     
     
     
    If this helps & solves your problem, please remember to like and accept my solution as it will help others in the future.
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard