Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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,396 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,396 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started