cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Incomplete query using Get File (Properties Only)

I have a subfolder with approx. 500 images in it. I'm trying to use Get File (Properties Only) to get the folder path and name of the image, which is then fed into a .csv and uploaded to sharepoint. As of right now, I'm only getting about 40/500 images into my table. Very confused as to why I've seemed to hit a limit. Thanks in advance for the help!

 

Capture.JPG

2 REPLIES 2
Highlighted
Dual Super User II
Dual Super User II

Re: Incomplete query using Get File (Properties Only)

Its not dependent on how many items are in the folder, but how many items are in the library itself.  You'll need to provide some kind of OData query to cut down the number of items that are being returned from the server.  Right now I suspect you are filtering on the client side.  So you get 500 items but they don't all match the folder you want so you end up with 40 or so.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Community Support
Community Support

Re: Incomplete query using Get File (Properties Only)

Hi @dakotav14 ,

 

Could you tell us how you judged that Get files action only got information for 40 images?

Basically, Get files action gets information about all the files and folders in the specified Library, as long as you don't add any restrictions.

You could use length() function to get the number of items retrieved by Get files action.

length(body('Get_files_(properties_only)')?['value'])

27.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,421)