Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

PowerApp Multi attachment using do not work

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")}))

  • Verified answer
    Re: PowerApp Multi attachment using do not work

    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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard