cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sadath
New Member

Schedule Flow to copy file from local drive to OneDrive

Good Day All,

 

How can I schedule a flow which copy file from my 😧 to one drive.

 

Please guide me step by step as I am new to MS Flow

Thank You

2 REPLIES 2
manuelstgomes
Community Champion
Community Champion

Hi @sadath 

 

Just for me to understand what you need:

  1. You want a Power Automate that triggers regularly and copies a file to your OneDrive
  2. You want a Power Automate that triggers when a new file is added somewhere and copies to your OneDrive

 

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

Cheers
Manuel

CFernandes
Super User
Super User

@sadath 

Before you begin:

Connect to File Systems on your local or network machines to read from and write to files using the On-Premises Data Gateway.

 

Step 1: 

Create a Flow that Runs on schedule  https://docs.microsoft.com/en-us/power-automate/run-scheduled-tasks

 

Use the Trigger- Schedule - Recurrence.

 

Step 2: 

List files in folder

This operation gets the list of files and subfolders in a folder

 

Step 3:

Get file content

This operation gets the content of a file.

 

Step 4: Create a File in OneDrive

 

Create file

This operation creates a file.

 

You can use this article for your reference, for details see: https://www.c-sharpcorner.com/blogs/microsoft-flow-recurrence-wf-to-copy-files-from-local-shared-pat...

 

Instead of "SharePoint Create File" use the "OneDrive Create File" action. https://docs.microsoft.com/en-us/connectors/onedrive/#create-file 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,088)