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 / File name contains str...
Power Automate
Answered

File name contains string and Save from Sharepoint to OneDrive

(0) ShareShare
ReportReport
Posted on by 11

Im very green to PA and having zero luck finding posts or youtube videos that can spoon feed the solution. I built a flow that works but need an enhancement. 

What works is "get file content" from SharePoint and "creating file" to my OneDrive. But since the file gets updated and the file name changes, like from "02.22.2024 Vendor List" to "02.28.2024 Vendor List" I want it to look for a file name that contains "Vendor" and save it to OneDrive.

Additionally, the file I want to choose that contains "Vendor" resides in a folder that has other files I don't want to copy.

I appreciate your time reading my problem! 

 

NewGuy86_0-1709063276080.png

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @NewGuy86 

    Upon reviewing your flow logic, it appears that you are essentially transferring a file from SharePoint to OneDrive.

    Could you provide a detailed explanation of the use case, perhaps broken down into steps? This will help in understanding the purpose and workflow more thoroughly.

     

  • NewGuy86 Profile Picture
    11 on at

    On a weekly basis a file is uploaded into a SharePoint folder. The name of file changes but always includes "Vendor". There are other files in the folder but I want to copy the file that contains "Vendor" in the file name to my OneDrive each week. 

  • Verified answer
    NewGuy86 Profile Picture
    11 on at

    Solved my problem. Here is the flow and necessary entries for each. 

    NewGuy86_0-1709153135148.png

    Get Files (Properties only)

    Filter Query: substring('name',FileLeafRef) Replace name with word or phrase that file name contains.

    Library name is the folder the file exists.

    NewGuy86_2-1709153417276.png

     

    For Each: is SharePoint Body/Value 

    NewGuy86_3-1709153474419.png

    Get File content using path

    File Path: SharePoint Full Path

    NewGuy86_4-1709153530351.png

     

    Create File: File Content = SharePoint File Content

    NewGuy86_5-1709153588595.png

     

     

     

     

     

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard