cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ericonline
Community Champion
Community Champion

Where is the URL for a OneDrive File?

Hello,

I'd like to send an automated email that includes the URL of a file in my OneDrive folder. Unfortunately, I cannot find the URL of the file in Flow. 

What I have so far:

  • Trigger: Recurrance (every day)
  • Action1: Get File Metadata (file.xlsx)
  • Action2: Get File Content
    • Set to Dynamic Content: id from Action1
  • Action3: Send an Email
    • In the Body field, I'd like to include the URL to file.xlsx

Issue:

  • No values from the Get File Metadata action show the URL

Please advise on where I can get this so my users can open the file directly from the email by clicking the URL and using Excel Online.

Thank you

1 REPLY 1
ScottShearer
Super User
Super User

@ericonline :

Here are two options:

  • You can manually build the URL and insert the filename with extension which is available via Dynamic properties.
  • You can use the Create share link by path action which does generate a URL accessible via Dynamic properties

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (2,529)