Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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.

  • DavesNotHere Profile Picture
    2 on at
    Re: Copy sharepoint file Path to Clipboard

    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.

  • MarkSanchezSPEC Profile Picture
    16 on at
    Re: Copy sharepoint file Path to Clipboard

    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

     

  • MarkSanchezSPEC Profile Picture
    16 on at
    Re: Copy sharepoint file Path to Clipboard

    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

  • Verified answer
    rrovira Profile Picture
    Microsoft Employee on at
    Re: Copy sharepoint file Path to Clipboard

    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
    Re: Copy sharepoint file Path to Clipboard

    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

  • MarkSanchezSPEC Profile Picture
    16 on at
    Re: Copy sharepoint file Path to Clipboard

    Checking on that... (thanks)

  • rrovira Profile Picture
    Microsoft Employee on at
    Re: Copy sharepoint file Path to Clipboard

    Hello, @MarkSanchezSPEC!

     

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

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