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 / URL to where copied fi...
Power Automate
Unanswered

URL to where copied file came from

(0) ShareShare
ReportReport
Posted on by

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
    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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard