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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Will Flow Fail if File Name Changes?

(0) ShareShare
ReportReport
Posted on by 4

Hi all,

 

I have built a flow using the SharePoint connector 'Get File Content Using Path'. It goes to six locations and pulls the file content (which are .html files) for the specified files. The roadblock I am running into is, if our operations change, the name of the file could also change. The other challenge is there are other files in the same folder that are also .html files. I know for sure the file will be titled in one of two ways which won't change, but I can't work out how to pick the file I need based off the two name possibilities. 

 

Basically the file names could be either "xxxxx A" and "xxxxx B" (which is currently how the flow is configured and works) OR if our operations change there will only be one file in the folder that I want titled "Operations".

 

Attached is a picture of the flow for reference.

FlowPic.png

 

I have the same question (0)
  • abm abm Profile Picture
    32,600 Most Valuable Professional on at
    Re: Will Flow Fail if File Name Changes?

    Hi @Ncf5031 

     

    What action step are you using here? Can't recognize at all from the screenshot you provided.

     

    Thanks

  • Ncf5031 Profile Picture
    4 on at
    Re: Will Flow Fail if File Name Changes?

    @abm 

    This is using the 'Get File Content Using Path' step at the beginning. I'm just doing this six times to get the content from each file that I need. Then each of those outputs goes through a compose step, then finally put into an e-mail body.

  • abm abm Profile Picture
    32,600 Most Valuable Professional on at
    Re: Will Flow Fail if File Name Changes?

    Hi @Ncf5031 

     

    Try to use Get Files Properties action step and use the filter query as below

     

    substringof('Portal',FileLeafRef)

     

    This will return all the files in that directory which contains Portal

     

    If you want to get particular one file, then use the below query

     

    FileLeafRef eq 'File1.docx'

     

    More than file files then

     

    FileLeafRef eq 'File1.docx' or FileLeafRef eq 'File2.docx'

     

     

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard