cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

URL to where copied file came from

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.

1 REPLY 1
Highlighted
Community Support
Community Support

Re: URL to where copied file came from

Hi @marcwenning,

 

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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (9,201)