web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / URL to where copied fi...
Power Automate
Unanswered

URL to where copied file came from

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a form that allows users to select multiple dcouments from different libraries.  Once submitted I have a flow that copies the selected documents to a library in another site.

 

Site 1

  Library 1

  Library 2

  Library 3

 

Select files from these libraries copy to new site and library

 

Site 2

   Library 1

 

The flow is working great, however when I copy the files to site 2 I would also like to be able have a column in the Site 2 library that shows what site/library that file came from.  Is there a way I can do this in the flow?  I was thinking of adding a metadata column in the original library that would contain the URL so it would get copied over.  But I was wondering if there was a way to do this from within the flow itself.

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Could you please share a screenshot of the configuration of your flow?

    I have made a test on my side and find that you could get the site/library url of the file.

     

    The workaround to get the site url of the file is get the "Link to item" dynamic content of the file and then extract the site url from the file link with workflow definition language.

     

    The screenshot of my flow as below:

    Capture.PNG

     

    The expression in the Compose 3 as below:

    first(split(outputs('Compose'),concat('/',outputs('Compose_2'))))

    The flow would run successfully as below:

    Capture.PNG

     

     

     

    Best regards,

    Alice

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard