Skip to main content

Notifications

Community site session details

Community site session details

Session Id : bQ1I1hcpmu0XhbcbrIXhal
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

  • creativeopinion Profile Picture
    10,419 Super User 2025 Season 1 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?

  • 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,419 Super User 2025 Season 1 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

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 135 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 125

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 120 Super User 2025 Season 1

Overall leaderboard