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 / Add Shortcut to OneDri...
Power Automate
Unanswered

Add Shortcut to OneDrive from Teams Files Tab or SharePoint Library

(0) ShareShare
ReportReport
Posted on by 10

I have a Flow that creates a new Teams channel along with several folders inside that channel's Files Tab. I want the Flow to automatically add a shortcut to OneDrive for at least the account of the user initiating the Flow, but additional users would also be very useful. Is there a relatively straightforward way to do this? I have only found very convoluted quasi-solutions involving PowerShell and Graph API. If those are the only available methods, so be it, but was hoping there's a simpler solution. 

 

Many thanks in advance!

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    Hi,

     

    One important detail missing... Post it where or do you mean add a shortcut "inside of one drive?" itself, like an actual new shortcut?

     

    Yeah thats not a normal PA thing to do.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • 3hree8ight5ive Profile Picture
    10 on at

    Thanks @FLMike. To clarify, in a Teams Channel's Files Tab there is a button called "Add Shortcut to OneDrive". It's also present in the channel's SharePoint library. Clicking it automatically syncs the Files Tab (or SharePoint Library's) contents to the user's OneDrive. I'm hoping to be able to automate this step in a Flow I'm using that creates a new Teams Channel. Hopefully that clarifies things? Thanks again.

  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    HI,

     

    Oh, well truthfully it depends if the Flow is running as the User, or in a context that can write to the users OneDrive.

     

    You can easily do a List Files on the SharePoint library, do an Apply to Each and then do a Get File Contents (SharePoint), then Create File (giving it the users OneDrive, file name and Contents from the Get File Contents.

     

    So yes you can do this easy. But how do you want to trigger it? But no you wouldn't be using the Shortcut thingee at all.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • 3hree8ight5ive Profile Picture
    10 on at

    Wow, @FLMike , thanks for the swift reply! 

     

    The Flow is running as the User. This action would be triggered as part of a larger Instant Cloud Flow that creates a new Teams Channel, populates that channel's Files Tab (and SharePoint Library) with a large folder structure containing documents and many subfolders. 

    So, essentially, what you're suggesting would recreate the entire folder structure on the User's OneDrive? No need to use the Shortcut, I'm mainly interested in reproducing its effect. 

     

    Thanks!

  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    Hi,

     

    I'm not sure we are or aren't saying the same thing.

    You said

    Clicking it automatically syncs the Files Tab (or SharePoint Library's) contents to the user's OneDrive.

     

    Which means its not short cuts, you said it syncs the files tab contents, which is what i described you doing yes.

     

    Apologies, maybe you were agreeing with me or maybe you just said it differently than you meant (try syncing versus short cuts).

    My suggestion wont create short cuts, it will create copies.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • 3hree8ight5ive Profile Picture
    10 on at

    Ah, I see. Yes, the "Add Shortcut to OneDrive" button syncs or creates a shared linkage to the SharePoint library in the User's OneDrive, so it's not a copy, it's a direct link to the same files. There's no way to do that within a Flow?

     

    Thank you!

  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    I am not aware of any action that would create a Shortcut to a Sharepoint library document.

     

    If it exists, and maybe it does, it would be news to me.

  • hvandesa Profile Picture
    5 on at

    Did you ever find a way to do this?  Thank you. 

  • 3hree8ight5ive Profile Picture
    10 on at

    Unfortunately not. Glad to know I'm not the only one desiring this!

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard