Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Dynamically get SP file location and add to SP List

I am creating a List Item, everytime a new file is uploaded to a certain SP Folder and that is working as expected. Now I would like to take it a step farther and add a column for the file location (hyperlink), I am having issues trying to figure this out.

Basically when the list new is creating, I am grabbing the title but I want to grab the file url location as well and use it in my list so that users can view the list and click on the file location to open the document.


Super User
Super User

Re: Dynamically get SP file location and add to SP List

Hi @sevenrice which trigger are you using?


If you're using "When a file is created in a folder", the triggerBody() will only give you information about the physical file, not the metadata associated with it. Whilst it will give you some identifying information, it's not quite as much as if you used the trigger "When a file is created (properties only)".


From that trigger, you can use the "Link to Item" dynamic content to put a full URL to the file in the other list.

Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!

Proud to be a Flownaut!

Community Leader: Black Country PowerApps & Flow User Group

Level: Power Up

Re: Dynamically get SP file location and add to SP List


Here is my current setup


Community Support Team
Community Support Team

Re: Dynamically get SP file location and add to SP List

Hi @sevenrice ,


Do you want to add a link of a file in the SharePoint list when the file is created in a library?


I suppose that there is a Hyperlink column in the list, please check if the flow configuration will work for you.



Best regards,



Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,239)