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 / Copy sharepoint file P...
Power Automate
Unanswered

Copy sharepoint file Path to Clipboard

(1) ShareShare
ReportReport
Posted on by 16

In SharePoint, when you select a file, click the ellipses button and choose "Detail", a pane opens up. If you scroll down this pane, which can be long, near the end there is a "Path" listed and a button that allows you to copy the selected files' path to the Clipboard:

 

SharePoint File Path to Clipboard.jpg

 

We want to allow our user's to generate this same simple path without having to use the steps above, but rather use a Power Automate flow. We are aware of the "Copy Link" option, but this generates a much more complex link, which I've been told is causing issues and confusion. Here is a comparison of the two links, the 2nd one being what we want to produce:

 

Copy Link:
https://ourcompany.sharepoint.com/:b:/r/Shared%20Documents/SPEC%20Org%20Chart.pdf?csf=1&web=1&e=3Bk3Z8

Path:
https://ourcompany.sharepoint.com/Shared%20Documents/SPEC%20Org%20Chart.pdf

 

This flow would need to be available to all Libraries and files inside SharePoint. It's really just a time saver for an existing functionality.

 

Thanks,

 

Mark S

SPEC Services, Inc.

Categories:
I have the same question (0)
  • rrovira Profile Picture
    Microsoft Employee on at

    Hello, @MarkSanchezSPEC!

     

    I have a question! Do you send this path through, for example, an email? 

  • MarkSanchezSPEC Profile Picture
    16 on at

    Checking on that... (thanks)

  • MarkSanchezSPEC Profile Picture
    16 on at

    Yes. They want to email these particular links to one another

     

    The goal is to either:

    1) Use a PA flow to copy the file link to the Clipboard

    AND/OR

    2) Use a PA flow to start a new email with the file link inside the body.

     

    They would also prefer that this flow appear within the ellipses (3 dot) context menu if possible.

    Thanks

  • Verified answer
    rrovira Profile Picture
    Microsoft Employee on at

    If so, then you can use HTML and create a reference to a link with a personalized message! 

     

    For example, what the user shows in this post:

    Solved: How to insert a "Clck Here" in an email? - Power Platform Community (microsoft.com)

     

    Instead of Click Here for Details, you can enter the name of the file or something similar. Let me know if that works! 

  • MarkSanchezSPEC Profile Picture
    16 on at

    Okay that helped, thanks (see below).

    Now how would I make this flow available to ALL libraries and ALL documents in our site? I used the "For a selected file" SharePoint connector, which requires a single Library. I hoped that selecting the root "Documents" library would make it available everywhere but that is not the case. Is there another connector to use for this type of global file behavior?

    PA Flow.jpg

  • MarkSanchezSPEC Profile Picture
    16 on at

    Thanks for your help. I broke my last question out as a distinct post and set your reply as the Solution.

    https://powerusers.microsoft.com/t5/Using-Flows/Adding-a-SharePoint-selected-file-Flow-to-all-Libraries/m-p/938347#M23391

     

  • DavesNotHere Profile Picture
    2 on at

    I'm looking for a way to put this function in a text column that holds the url. Like the json email button link on a people picker that everyone seems to use.

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