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 / Find specific file lat...
Power Automate
Answered

Find specific file latest modified

(0) ShareShare
ReportReport
Posted on by 10
I need to find the specific file latest modified witin 6 days. I have over 20 files named the same but in different folders each time.
And finding the latest one is necessary.
But i always get an error.
Could i please get help on how to write the expression ?
Im Sure its gonna be a simple solution
 
lessOrEquals(item()?['Modified'], 5)
Unable to process template language expressions in action 'Get_Files_(Properties_only)' inputs at line '0' and column '0': 'The template language function 'lessOrEquals' expects all of its parameters to be either integer or decimal numbers. Found invalid parameter types: 'Null'.'.

Nutela_0-1718216501898.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Nutela 

    According to your description, you want to filter the [Modified] column in your SharePoint document.

    You can use this expression in your "Filter Query" peroperty:

    vyueyunmsft_0-1718242076029.png

    addDays(utcNow(),-5,'yyyy-MM-ddTHH:mm:ssZ')

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 284 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 188 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard