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 / PowerApp Multi attachm...
Power Apps
Answered

PowerApp Multi attachment using do not work

(0) ShareShare
ReportReport
Posted on by

The attachments do not work. But work if i remove the attachments parameter 

__________________

 

Back(); If (CountRows(DataCardValue17.Attachments)>0,Office365Outlook.SendEmailV2("aaa.aaa@aaa.com","PO:" & DataCardValue18.Text & " for Credit Card transaction: " & Label1.Text, "Hello Please refer the attachment for the transaction", {Cc:User().Email} ,{Attachments:RenameColumns(DataCardValue17.Attachments,"Value","ContentBytes")}))

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

    Hi @VTandon ,

    Do you want to send email with multiple attachments?

    Could you tell me whether you want to send the same file types?

    1)If you send with different file types, then you need to firstly update these files to sharepoint list.

    Then use data in this sharepoint list to send email:

    Office365Outlook.SendEmail("EmailAddress","Subject","EmailBody",{Attachments:ForAll(LookUp(List1,ID=SharePointForm1.LastSubmit.ID).'{Attachments}',{Name:DisplayName,ContentBytes:Value})})

    2)If you send with same file type(for example, all are images), then you do not need to save data firstly. You could directly send email:

    Office365Outlook.SendEmail("EmailAddress","Subject","EmailBody",{Attachments:ForAll(RenameColumns(DataCardValue3.Attachments,"Value","FileContent"),{Name:"Image.png",ContentBytes:FileContent})})

     

    Here's a similar issue for your reference:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/send-email-with-multiple-attachments-from-pwerapp/m-p/136712

     

     

     

    Best regards,

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 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard