
Announcements
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.
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:
The expression in the Compose 3 as below:
first(split(outputs('Compose'),concat('/',outputs('Compose_2'))))
The flow would run successfully as below:
Best regards,
Alice