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

Get file properties from Sharing link

Hi gurus, 

 

I have a Sharepoint list where in each entity users add the link to the ppt file stored in a library, so we have the sharing link/url.

 

And next in the recurred flow I have to check file properties (Modified date). But all methods that I see (Get file properties, get file metadata etc.) require ID.

 

Is it possible to resolve sharing link and get file ID?

 

TIA

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Get file properties from Sharing link

Hi @brainstorm13 ,

 

Do you want to get file identifier from a Sharing link?

 

I am afraid that it is not possible to get file properties from a Sharing link.

 

I have figured out the following workaround for your scenario, please take it for a reference.

 

In the list, besides the column for the Sharing link, add another text column, name it as “PPTName”.

 

In the library, add a custom single line of text column, name it as “FileName”, you may need to enter the exact file name manually later on.

 

Then set up the flow likes below.

 

Add trigger when an item is created.

 

In action Get files (properties only), input the following code in the Filter Query field:

FileName eq 'PPTName'

Then you could get the file’s modified time by using dynamic content Modified.

 

Note: When using above workaround, please remember enter the exact file name in the Library first when you upload it. Then in the list, in addition to add the sharing link, add the PPT name as well.

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.

View solution in original post

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Get file properties from Sharing link

Hi @brainstorm13 ,

 

Do you want to get file identifier from a Sharing link?

 

I am afraid that it is not possible to get file properties from a Sharing link.

 

I have figured out the following workaround for your scenario, please take it for a reference.

 

In the list, besides the column for the Sharing link, add another text column, name it as “PPTName”.

 

In the library, add a custom single line of text column, name it as “FileName”, you may need to enter the exact file name manually later on.

 

Then set up the flow likes below.

 

Add trigger when an item is created.

 

In action Get files (properties only), input the following code in the Filter Query field:

FileName eq 'PPTName'

Then you could get the file’s modified time by using dynamic content Modified.

 

Note: When using above workaround, please remember enter the exact file name in the Library first when you upload it. Then in the list, in addition to add the sharing link, add the PPT name as well.

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.

View solution in original post

Highlighted
Regular Visitor

Re: Get file properties from Sharing link

Thank you for answering, interesting solution.

 

I'd rather add filename automatically. Perhaps there is a way to download web content using that sharing link to get the name of downloaded file?

Highlighted
Community Support
Community Support

Re: Get file properties from Sharing link

Hi @brainstorm13 ,

 

I have tried to find out a way to get file name from the sharing link, but it seems that it is not possible to get the file name from the link.

 

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.
Highlighted
New Member

Re: Get file properties from Sharing link

Hi there, 

I have the exact same scenario - just wondering if you had managed to do this? I don't think it will fly for the users to have to put in the filename in our scenario

Appreciate any help!

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Users online (8,989)