Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

  • rankhornjp Profile Picture
    6 on at
    Re: Move picture from Onedrive to Sharepoint

    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)]
  • Verified answer
    Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on at
    Re: Move picture from Onedrive to Sharepoint

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow