cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sevenrice
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.

thanks

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

sevenrice
Level: Power Up

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

@MattWeston365 

Here is my current setup

Flow-NewListItem.png

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.

1.PNG

 

Best regards,

Mabel

 

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

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

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