Hi,
I am trying to do something that I think should be quite easy but I can't quite get it to work! I have created a flow that creates an excel file and saves it in a SharePoint location using the 'Create file' action. This is working fine. However I want to then get the full link to that file to email to my users, so they can just click on the link in the email and open the file (my users will have access to that sharepoint folder as standard). But I can't seem to get the full URL. I have tried Get file metadata but that also doesn't have the 'link to item' output.
Any ideas of what I am missing or what I can try to do this?
Thanks
Thanks so much - I got this working 🙂
Use a 'Get file properties' action after 'Create file' action (ID parameter from Create file outputs) and the link can be found using:
@{body('Get_file_properties')?['{Link}']}
Hi @glitter1234567 ,
I did a test for your reference.
In my scenario:
First, go to the original SharePoint library and check the ID of the file you want to copy.
My SharePoint List:
My Flow:
Please use the 'Get file properties' control to get file link.
Fill in the file ID in the 'Get file properties' control.
<p>This is a File Link</p>
<p><a href="@{outputs('Get_file_properties_2')?['body/{Link}']}">FileLink</a></p>
My Outlook Inbox:
Best Regards,
Sunshine Gu
thanks for you reply - sorry I should have mentioned I tried that also but got the error "Forbidden"
The 'Create sharing link for a file or folder' operation failed because sharing has been disabled on the site. To fix this error, you need to enable sharing on the SharePoint site. Check the site settings and make sure that sharing is allowed for the site. Once sharing is enabled, the operation should work successfully.
The users who will access this file are owners of the site so I shouldn't need to enable sharing of anything
Actually there is a special action for it.
Inside body of Send of Email use output link from previous action as link target.
Hope it helps !
rpersad
16
David_MA
10
Super User 2025 Season 1
Michael E. Gernaey
8
Super User 2025 Season 1