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 / startswith(FileLeafRef...
Power Automate
Answered

startswith(FileLeafRef,'XXX') finds nothing

(0) ShareShare
ReportReport
Posted on by 6

Hi all,

 

I have a flow to help me get the file name starts with XXX from sharepoint, it works smoothly for months, but turns no files these days.

I am sure that the file I need exists in the library @ the sharepoint, but the flow just give me nothing.

Here are the screenshots for your reference, pls help me figure out the solutions to this problem, thank you.

Not sure if any update to the Sharepoint or Power Automate recently?

YTHUANG_0-1661505789059.png YTHUANG_3-1661506108364.png

YTHUANG_2-1661505967865.png

 

 

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

    Hi @YTHUANG,


    I have just tested a similar OData Filter query on my dev environment. The startswith seems to work with a Get Files (properties only). I cannot reproduce your behaviour. How many items do you have in your library?

     

    Have you tried substringOf to see if that one works? 

    substringof('8000',FileLeafRef)

     

    Below is my test btw.

     

    startswith2022.png

     

    Two example files which start with 2022

    startswith2022_02.png

     

    Response from the Get Files action with the two files I expected.

     

    startswith2022_03.png

  • YTHUANG Profile Picture
    6 on at

    Hi @Expiscornovus ,

     

    Thank you for your reply.

    Actually I've also tried substringOf before but got nothing, either.

    substringof('8000',FileLeafRef)

    I guess the issue came from our SharePoint, because now I execute the flow again without change anything, and it finally succeed as usual.

    Thank you for your advice and I think " substringOf " is also a good way to get the file we need.

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard