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 / Move picture from Oned...
Power Automate
Answered

Move picture from Onedrive to Sharepoint

(0) ShareShare
ReportReport
Posted on by 6

I'm trying to move a file (jpeg) from my onedrive to a sharepoint folder.  I have googled and found several solutions similar to this: Save upload files from Forms to Sharepoint using Power Automate | by Samantha Seah | Medium

 

The problem is I can't get it to work.  I get a new file in my sharepoint folder, but it isn't a picture (jpeg).  I don't know what type of file it is, but it doesn't open when you click on it.  Being I found so many similar solutions, I feel like it is something simple that is preventing it from working correctly.  I don't get any errors; flow says it ran successfully, so I'm lost.

 

Any help is appreciated.

Flow overview expanded 1.PNG
Flow overview expanded 2.PNG
Flow File in Sharepoint.PNG
Categories:
  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    You need to include the extension on your file name. Right now it's just "Test". You can get the extension by using the filename that came out of OneDrive. If you want to rename it, then  you'll need to get the extension from that file. You can do that by using the "split()" expression, splitting on . - you can then use the second item in the array to append to your desired file name, as that'll be the extension.

  • rankhornjp Profile Picture
    6 on at

    Thank you!  I was able to use the split function to pull the file extension and add it to my new name.

     

    split(items('Apply_to_each_2')?['Name'], '.')[sub(length(split(items('Apply_to_each_2')?['Name'], '.')), 1)]

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

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard