Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Create File in Shared OneDrive Folder

Like (1) ShareShare
ReportReport
Posted on 3 Mar 2021 17:07:37 by 20

Hello,

I've created a simple flow to copy files from a SharePoint site to a OneDrive folder.  The flow triggers and runs successfully when I point to a folder on my OneDrive.  But when I try to point to a OneDrive folder that is shared with me it fails:  Unauthorized

I copied the link to the shared folder from OneDrive and added it to the folder path of the Create File step and also confirmed my access to the folder utilizing the link.  But the flow fails.

Is there a way to save to a shared OneDrive folder, or is this limited to only personal OneDrive folders?

Successful: (used folder picker to select Folder Path)

Screenshot 2021-03-03 115131.jpg

Fails: Unauthorized (copied folder link from OneDrive, since folder does not appear in the picker)

Screenshot 2021-03-03 115641.jpg

 

cc: @tom_riha 

  • kyle-18888 Profile Picture
    4 on 02 Sep 2022 at 16:34:54
    Re: Create File in Shared OneDrive Folder

    One additional workaround is to use the SharePoint Create File action (or any of the SharePoint connector actions instead of OneDrive/OneDrive For Business). The onedrive url (the user's personal onedrive) can be used in the Site Address. You can specify the folder in the Folder Path like so "/Documents/<Folders>"

  • nandan Profile Picture
    32 on 19 Sep 2021 at 11:01:32
    Re: Create File in Shared OneDrive Folder

    This worked for me... In My Connections for "Create file", you could add real owner(not shared) and get it working

     

    nandan_0-1632048979289.png

  • LeesaB Profile Picture
    20 on 08 Mar 2021 at 18:56:37
    Re: Create File in Shared OneDrive Folder

    Thanks @tom_riha ,

    I had a feeling you might say this couldn't be done.

    Thank you, once again, for the guidance!

  • Verified answer
    tom_riha Profile Picture
    10,085 Most Valuable Professional on 03 Mar 2021 at 20:01:28
    Re: Create File in Shared OneDrive Folder

    Hello @LeesaB ,

    I didn't test it but I think you can use access only personal OneDrive in Power Automate.

    It's among the ideas for improvement: OneDrive - list files in 'shared with me' folders - Power Platform Community (microsoft.com)

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 18 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 16

#3
Churchy Profile Picture

Churchy 12

Overall leaderboard
Loading started