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:
"Pfad" and "Name" comes from the "dynamische Inhalte"
Thank you
@ThomasH can you confirm if it's your OneDrive or another user's OneDrive?
@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.
What can i do, to solved this?
Thank you
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)
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.
You can see that the Web URL dynamic content outputs a full link. Use this dynamic content in your Email action.
Hope this helps!
David_MA
135
Super User 2025 Season 1
stampcoin
125
Michael E. Gernaey
120
Super User 2025 Season 1