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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Send E-Mail with Attac...
Power Apps
Answered

Send E-Mail with Attachements from a datasource

(0) ShareShare
ReportReport
Posted on by 45

Hey,

At first thanks for reading and now my problem. I have a Sharepoint Datasource where I have a colomn wich contains pdfs.

Now I want to send an E-Mail to a customer and attach the Pdf. I connected my Powerapps to my Office365 and If i just send an Email with a title and a body it works just fine. Now I am trying to attach something (in this case a photo as a test before I try the pdf) and the programm says it needs a typ Blob and i am giving it a typ Record wich seems to be the problem. If I try it with the pdfs it says it gets a table instead of a Blob. I tried researching what a typ blob is but I dont get it. If you may know a solution and reply thanks a lot 🙂

Best Regards 

Hauke Dasenbrock

EmailProblem.PNG

Categories:
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @HaukeSan 

    According to your description, you want to use the sendEmailV2 to send the pdf file in your sharePoint list .

    I test it in my side and this is my list :

    vyueyunmsft_0-1700555986464.png

    And we can use this code in Power Apps:

    Office365Outlook.SendEmailV2("AniyaZhang@xxxxxxxxx.onmicrosoft.com","email with attachment" , "here is your pdfs",{Attachments:ForAll( Gallery2.Selected.Attachments,{Name:ThisRecord.DisplayName,ContentBytes:ThisRecord.Value,'@odata.type':""} ) })

     

    And the Gallery2.Selected Attachments in my side is like this:

    vyueyunmsft_2-1700556081594.png

     

     

     

    Best Regards,

    Yueyun Zhang

  • HaukeSan Profile Picture
    45 on at

    Hey @v-yueyun-msft,

    this worked like a charme, you saved my day. I love you.

    Best Regards,

    Hauke Dasenbrock

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard