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 / 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.

Categories:
I have the same question (0)
  • Verified answer
    Rhiassuring Profile Picture
    8,690 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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard