web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate - get l...
Power Automate
Answered

Power Automate - get link to a file I created

(0) ShareShare
ReportReport
Posted on by 129

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

Categories:
I have the same question (9)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @glitter1234567 ,

    Actually there is a special action for it. 

    gabibalaban_0-1710479693632.png

    Inside body of Send of Email use output link from previous action as link target.  

    gabibalaban_1-1710479982821.png

    Hope it helps !

     

  • glitter1234567 Profile Picture
    129 on at

    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 

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    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:

    vyetonggumsft_2-1710483563756.png

    My Flow:

    Please use the 'Get file properties' control to get file link.

    Fill in the file ID in the 'Get file properties' control.

    vyetonggumsft_3-1710483746304.png

    <p>This is a File Link</p>
    <p><a href="@{outputs('Get_file_properties_2')?['body/{Link}']}">FileLink</a></p>

    My Outlook Inbox:

    vyetonggumsft_4-1710483775848.png

    Best Regards,

    Sunshine Gu

     

  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @glitter1234567 ,

    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}']}

     

  • glitter1234567 Profile Picture
    129 on at

    Thanks so much - I got this working 🙂

  • HK-10081949-0 Profile Picture
    2 on at
    Thanks for this post. Does anyone know how to get the url/link to the folder of the file created? I'm using a similar flow but to copy attachments into a generated folder inside a library list (generated by using a combination of ticket# and location ID).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 464

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 323 Super User 2026 Season 1

Last 30 days Overall leaderboard