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

Community site session details

Session Id : wWAl7z5xdtt4ueILfuT3d2
Power Automate - Building Flows
Unanswered

A "Click" Link in Email Body to a OneDrive File

Like (0) ShareShare
ReportReport
Posted on 9 Oct 2023 13:00:51 by 170

Hello, I want to monitor a OneDrive folder in Power Automate and if a new file is created there, an email should be created with the link in the email to the file and the note that a new file was created. This works so far, except that the link in the email is probably not correct, because when I click on it I always get the message that the file could not be found. What could be the reason? My flow looks like this:

ThomasH_0-1696856356605.png

 

ThomasH_1-1696856378352.png

 

"Pfad" and "Name" comes from the "dynamische Inhalte"

ThomasH_2-1696856420746.png

 

Thank you

I have the same question (0)
  • creativeopinion Profile Picture
    10,480 Super User 2025 Season 2 on 09 Oct 2023 at 13:54:59
    Re: A "Click" Link in Email Body to a OneDrive File

    @ThomasH 

     

    If you put the path dynamic content into a Compose action and run a test—you'll see that it only outputs the document name (a bit of a misleading label—IMO) 

    creativeopinion_3-1696859575803.png

    creativeopinion_0-1696859156117.png

     

    Add a Create a Share Link Action

    You need to add a Create a share link action to your flow. Use the Id dynamic content from the When a file is created (properties only) action. Set the Link type to View or Edit based on your requirements. 

     

    Add a Compose action (optional) and insert the Web URL dynamic content from the Create a share link action.

     

    creativeopinion_1-1696859417010.png

     

    You can see that the Web URL dynamic content outputs a full link. Use this dynamic content in your Email action. 

    creativeopinion_2-1696859485390.png

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok

     

  • ThomasH Profile Picture
    170 on 09 Oct 2023 at 15:03:58
    Re: A "Click" Link in Email Body to a OneDrive File

    @creativeopinion  Thank you for your help, it looks good, but it seems to be a Problem with the rights...

     

    I become this error Message:

     

    The operation failed because sharing has been disabled on this site.

    ThomasH_0-1696863783822.png

     

    What can i do, to solved this?

     

    Thank you

     

  • creativeopinion Profile Picture
    10,480 Super User 2025 Season 2 on 09 Oct 2023 at 15:25:07
    Re: A "Click" Link in Email Body to a OneDrive File

    @ThomasH can you confirm if it's your OneDrive or another user's OneDrive?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard
Loading started
Loading complete