web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problem to filter by V...
Power Automate
Unanswered

Problem to filter by VersionNumber

(1) ShareShare
ReportReport
Posted on by 23

Hello,

 

I'm trying get files with the {VersionNumber} greater than 5 for example.

 

the odata filter always show error "Creating query failed.",  the VersionNumber property has a special characters "{" and "}".

 

I have try with _x007bVersionNumber_x007d_ but dont work

 

somebody can help me?

 

Regards

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @angelsansev,

     

    Can you try the below for the VersionNumber?

     

    OData__UIVersionString gt '5.0'
  • StretchFredrik Profile Picture
    3,395 Super User 2025 Season 2 on at

    Another option is to use OData__moderationStatus eq 'Approved' if you only want to get major versions of files. 

  • angelsansev Profile Picture
    23 on at

    Thanks guys both works fine.

     

    Regards

  • HKICE Profile Picture
    237 on at

    I had a SharePoint document library with a File with 8 versions (1.0, 2.0, etc)

    This only works in getting the most current version.  I cannot get older versions using this.

     

    I tried specifying a particular version using 

    OData__UIVersionString eq '5.0'

    and it returned nothing/empty

    Next I tried:

    OData__UIVersionString lt '5.0'

    and it returned the latest version (for me version 8.0) only

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard