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 / Copy newly modified fi...
Power Automate
Unanswered

Copy newly modified files from local drive folder to OneDrive folder on Desktop

(0) ShareShare
ReportReport
Posted on by 11

Hey Everyone,

 

I am trying my first flow and it's really simple, I just want to copy any files that are newly modified , (For example: automatically copying a word file after adding new text).

 

The problem is with my flow is that it copies all the files inside the folder, no matter if they are last modified or not and with OneDrive it will auto sync always and that's what i don't want.

 

I don't know what to add so it checks the size and last modified from both folders and compare them.

 

Please let me know and thank you for the support.

 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    How exactly do you trigger your flow? Is there a cloud flow with a local file system trigger?

  • Ave1 Profile Picture
    11 on at
      Spoiler (Highlight to read)
      My flow is very simple , it's just copy from one folder to the other

      Let's say I have two folders, one is my normal folder in local drive and the other is a folder in onedrive which auto syncs whenever I copy anything inside

      What I want is a flow on the power automate desktop program is to check the newly modified files in this local drive  folder and copy them to the onedrive to auto sync 

      I want it be done on the desktop and not on the cloud side
      My flow is very simple , it's just copy from one folder to the otherLet's say I have two folders, one is my normal folder in local drive and the other is a folder in onedrive which auto syncs whenever I copy anything insideWhat I want is a flow on the power automate desktop program is to check the newly modified files in this local drive  folder and copy them to the onedrive to auto sync I want it be done on the desktop and not on the cloud side
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You can use Get files in folder and apply sorting in the action on .LastModified property. You could then build a For each loop on the list of files and process them all individually, where you can add an If condition to check the .LastModified and the .Size properties of the current item.

     

    The issue here is that you need to have something to verify the modification against. You will need to know what is to be considered as "new" and what isn't.

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

     

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 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard