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 / Trying to copy files i...
Power Automate
Unanswered

Trying to copy files in a Sharepoint list to Onedrive for business

(0) ShareShare
ReportReport
Posted on by 26

I need to get files(images) from Sharepoint to Onedrive for business. 

Can this be done?  I see a number of templates to do it from onedrive to Sharepoint but not the other way.

I want a trigger that when an upload to Sharepoint of a folder with images is done, it copies those same images/files   

to a specific folder on my Onedrive for business.  I'd apreciate any pointers. 

Mike

Categories:
  • Brad_Groux Profile Picture
    4,556 on at

    The templates are just guides, meant to be used for inspiration. Nearly every Flow you create will need to be customized based upon your workload and environment needs. 

    With that said, yes, what you are seeking to accomplish can be done fairly easily using the SharePoint and OneDrive connectors, and an expression based condition. The Flow could look something like this:CopyNewImagesFromSharePointToOneDrive.png

    Notice, the condition contains the Filen name and extension string with an Or statement that looks for image-based file exentensions. If it passes, it copies the file to OneDrive, if it fails, it does nothing.

    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!

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @mj4golf ,

     

    I think what you mean is to get the newly uploaded file in the SharePoint Library and copy it to OneDrive for Business.

     

    Please refer to the following method to configure Flow.

    • Using When a file is created(properties only) as the trigger, you could specify the file's Folder.
    • Use ends with in Condition to determine if the file type is specified.
    • If the conditions are met, use Get file content action to get the file content.
    • Finally, create a file in the folder specified in OneDrive for Business using Create file action.

    Image reference:

    9.PNG

    Please take a try.

     

    Best Regards,

  • mj4golf Profile Picture
    26 on at

    Thanks for the reply.

    I created a flow per the two suggestions and got the same results for both-- below is the error:

     

    flow error.JPG

    This happens at the first stage in both flows above 

    I tried everything but didn't come up with a sloution.  

    Thanks for the help

    mjj4golf

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @mj4golf ,

     

    The error message shows Folder Not Found, please check if the Folder you specified exists.

    Please click on the location of the icon to specify the folder.

     

    Image reference:

    31.PNG

     

    Best Regards,

  • Brad_Groux Profile Picture
    4,556 on at

    @mj4golf wrote:

    Thanks for the reply.

    I created a flow per the two suggestions and got the same results for both-- below is the error:

     

    flow error.JPG

    This happens at the first stage in both flows above 

    I tried everything but didn't come up with a sloution.  

    Thanks for the help

    mjj4golf


    The 404 means that you are not routing to the proper directory for this step. In this case, you are trying to map to the following directory, but it does not exist:

    https://stbernadettescatholic.sharepoint.com/sites/WebSiteInfo/Pictures/Gabriel Project 2018/Knots of Love

    Either create that folder path, or fix the folder path to point to an existing folder and try running the Flow once again.

    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!

  • mj4golf Profile Picture
    26 on at

    Thanks guys for the sug's.  However, I am using the folder icon to choose the folder.  But still get the error.

    mjj4golf

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @mj4golf ,

     

    Please try to configure the judgment of the folder location in Condition. Use Folder path to determine the folder path.

    Configure the path to the specified folder, usually "LibraryName/FolderName/SubFolderName/".

    Image reference:

    13.PNG

    Please take a try.

     

    Best Regards,

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard