Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Sharepoint Get files (properties only) filter with Path using ODATA filtering

(0) ShareShare
ReportReport
Posted on by

Hello there,

 

I am trying to get the built-in library "Documents" using Sharepoint Get files (properties only).  Since this action only allows maximum of 100 items, I am trying to filter Path using ODATA filtering.  However, no matter if I use Path eq 'xxxx' or {Path} eq 'xxxx', I get either column Path is not found or {Path} is not valid.

 

Because my site address is dynamic, return value is JSON, maybe this is why ODATA filter does not work.

 

Does anyone know how to filter correctly?  Thank you so much for your help.

 

Best regards,

David

 

getFilesPropertiesOnly.jpg

  • CU22072135-6 Profile Picture
    CU22072135-6 on at
    Re: Sharepoint Get files (properties only) filter with Path using ODATA filtering

    Hello @DavidLee ,

     

    Maybe you've already found a solution for your problem but

    for the path of your filtered item/file, you can filter in OData with the internal Sharepoint name of Path (FileDirRef)

     

    like this :

     

     

     

    Capture d’écran 2021-11-03 104315.png

     

     

  • DavidLee Profile Picture
    DavidLee on at
    Re: Sharepoint Get files (properties only) filter with Path using ODATA filtering

    Hello @WillPage ,

     

    Thanks for the info.  However, filtering would be a better solution as we use Sharepoint Documents as file server to store files, and number of files/folders will eventually be more than a certain amount.  Moreover, I have other condition actions afterwards, condition action processing that many rows of data will take too long in Power Automate.

     

    If I were to use static Sharepoint site by selecting from drop-down list, do you know what the correct Path column name is so that I can use ODATA filter?  I tried using the field "Limited Entries to the Folder", but initially if the folder does not exist, flow will stop due to error, so I need to use ODATA filter field.

     

    Thank you so much.

     

    Best regards,

    David

  • WillPage Profile Picture
    WillPage 1,877 on at
    Re: Sharepoint Get files (properties only) filter with Path using ODATA filtering

    Go into the settings of the action from the 3 dots menu, turn on Pagination and set to max 5000 items if you're on the seeded plan and something like 100000 on a paid plan. It'll error when you try and save if you've put a too big number in there and it'll tell you what your maximum is.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard