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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to send email atta...
Power Apps
Unanswered

How to send email attachments to OneDrive for business and add a link to those files in the email body (Canvas App)

(0) ShareShare
ReportReport
Posted on by 5

Hello, 

I've created Power Apps form which allows customer to submit a bug or a suggestion to improve certain product. I've inserted the form below so you can get an idea and follow the logic.

Via SharePoint connector my Combo boxes filter unique values of a list (Microsoft Lists) which contains all possible combinations of a product (3 currently) and a subject (Bug or Suggestion) => hence 6 combinations. For each of these combinations, there's a column containing unique email address to which the customer later sends the email via Submit button. User also fills out version of the product, chooses level of importance, describes the problem in 2 text labels below and preferably attaches some files. The text input in the bottom left corner is not important.

Jan_Vokurka_2-1674224776897.png

After that he can submit the form. In the button I use Set() to set the email recipient (I use LookUp function to figure out the right address), Office365Outlook.SendEmailV2() to send all the important information and Reset() to reset all the values. See below:

Jan_Vokurka_3-1674226411336.png

I then wanted to upload the attached files to OneDrive (for business) and add a link to those files to the body of the email, but I haven't found any documentation, video or sample showing this. I would be glad for any advice on how and if this can be done.

 

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @Jan_Vokurka ,

    You can easily attach the files to the email (I have a blog with an additional process, but you will get the idea), but the issue is that any files in OneDrive do not have a link until they are filed and this link is only generated by OneDrive when requested (in OneDrive). Also it is in the OneDrive of the user (I assume all of your customers have Office365 licences and you have shared the app with them all).

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Jan_Vokurka Profile Picture
    5 on at

    Thank you for the answer. I didn't know that. Can you think of a different way to do this? Using for example Sharepoint document library instead of OneDrive so I can get the link?

     

    Thanks in advance

  • Verified answer
    WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @Jan_Vokurka ,

    Yes with a Library, you can control where it is filed and what you call it in Power Automate when it is created, so the resulting URL is predictable and can be used. Note of course the Library would need to be shared with any user.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard