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 / How can I send a link ...
Power Automate
Answered

How can I send a link to a onedrive file in an email?

(4) ShareShare
ReportReport
Posted on by 14

I have a flow that will save file attachments sent to my email in a folder in onedrive. It is also set up to send an email whenever a file is saved in this folder. I want this email notification to have a link to the file in onedrive. Is there a way to do this?

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @thewiteam,

     

    Could you please share a screenshot of your flow's configuration?

    Do you create two separated flows on your side?

    Further, do you want to send an email including the link to a OneDrive file?

     

    If you want to send an email including the link to a created OneDrive file, I think the "Create share link" action could achieve your needs. I have made a test on my side and please take a try with the following workaround:

    • Add a "When a new email arrives" trigger, Has Attachment field and Include Attachments field are both set to Yes.
    • Add a "Apply to each" action, input parameter set to Attachments dynamic content of the trigger.
    • Within "Apply to each" action, add a Compose action, Inputs field set to 1. Then add a Parallel branch action, within left branch, add a "Create file" action, specify Folder Path, File Name set to Name dynamic content of the trigger, File Content set to Content dynamic content of the trigger.

             Within right branch of Parallel branch action, add a "When a file is created" trigger, specify Folder value. Add a "Create share link" action, File field set to File identifier dynamic content of the "When a file is created" trigger. Add a "Send an email" action, Body field set to Web URL dynamic content of the "Create share link" action.

     

    Image reference:6.JPG

     

    7.JPG

    The flow works successfully as below:8.JPG

     

    9.JPG

     

     

    Best regards,

    Kris

  • yanivc Profile Picture
    4 on at

    Thanks for the help!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    image.png

     

     

    I get this error while trying to run the flow. any help?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Been playing with this for awhile and your solution worked wonderfully. However, can you help with a solution to send the email and include the share link and original subject/body? This is what I have now but it's not linking the original flagged email subject link and body. Any help is much appreciated!

     

    2019-05-11 08_44_03-Edit your flow _ Microsoft Flow.png2019-05-11 08_44_25-Edit your flow _ Microsoft Flow.png

  • PaulMathasaran Profile Picture
    48 on at

    Thank you.!

    This solution works. 

    When is file is created, command has been removed from power automate, but it still works. Thank you.!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    How can I embed the link vs having the whole URL show?

  • PaulMathasaran Profile Picture
    48 on at

    Hi @Doc_Oct ,

     

    This post helped me to do that: LINK

     

    Hope so this helps.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard