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 / Sharepoint when file h...
Power Automate
Unanswered

Sharepoint when file has been created in folder - get properties for next step

(0) ShareShare
ReportReport
Posted on by 17

Hi

 

I am new to MS Flows and am trying to create a flow that monitors an O365 sharepoint folder and when new files are added, I want to make a copy of the file with a standard name and save this copy over the current file with the same name.

This is because I have another program that will analyze this file, but it always needs the same name and path.

 

I created a 'When a file is created in folder' step that monitors my folder, however I'm not sure how to pass the name of the file created into the next step which is 'copy file' (which asks for source and destination file paths).

 

Suggestions would be appreciated.


Thanks
Dave

Categories:
I have the same question (0)
  • DaveN Profile Picture
    17 on at

    Bump - any ideas?

  • faustocapellanj Profile Picture
    1,662 on at

    Hi @DaveN,

     

    Is the copy staying in the same folder as the original file or a different folder?

     

    Thanks,

    Fausto Capellan, Jr

  • DaveN Profile Picture
    17 on at

    Hi Fausto

     

    The copy could be to a different folder or the same folder if that's much easier.

     

    Thanks

    Dave

     

     

  • faustocapellanj Profile Picture
    1,662 on at

    @DaveN

     

    What about the file name? Do you have a specific file naming convention for the other program to search for? You can post an example if you have one.

     

    Thanks.

  • DaveN Profile Picture
    17 on at

    A new file is saved every day into this folder and date is in the name. I'd like to keep these files.

    However everytime a new file is added, I need to make a copy of it and overwrite an existing file. e.g. the copied file would always be called LatestData.xlsx

    I have another tool that looks at the file that needs the name to be constant. It is a visualization tool that looks at the latest data.

     

  • Verified answer
    DaveN Profile Picture
    17 on at

    I figured this out, all I had to use was this template:

    Copy files from one SharePoint Online account or folder to another

     

    This provided a destination filename parameter.

     

    It's now working properly.

     

    Thanks

    Dave

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard