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 / Issue with attachment ...
Power Apps
Answered

Issue with attachment control when using SendEmailV2

(0) ShareShare
ReportReport
Posted on by 219

Hello everyone, 

 

I have a send button with the value below

 

SubmitForm(Form6_1);ResetForm(Form6_1); Office365Outlook.SendEmailV2(Toemailaddress_2.Text, TextEmailSubject1_3.Text,RichTextEditor1_2,{ Attachments: AddColumns(RenameColumns(
AttachmentControlSendEmail_2.Attachments,"Value","ContentBytes"),"@odata.type","", "DisplayName",
"Name"
),Bcc: Bccemailaddress_2.Text,Cc: CCemailaddress_2.Text , Importance:"Medium"});

 

but I keep getting the error message below

 

ntt56k4_0-1624653639217.png

 

if my attachment control has the value below and it won't let me send the email. If I removed the value below from the attachment control and manually selected the attachments, it will let me send the email. 

 

Items > Gallery.Selected.Attachments  (this automatically picks up any attachments from the gallery)

 

In other words, I don't want to have to manually upload the attachment from the gallery, rather I wanted to automatically include the attachment from the gallery and hit the send button to send email that includes attachments from the gallery selected. 

 

Categories:
  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    In the code in your screenshot there seems to be a ".Selected" missing between "AttachmentControlSendEmail_2" and ".Attachements".

  • ntt56k4 Profile Picture
    219 on at

    ok thanks I added but still getting the error message 

     

    ntt56k4_0-1624657538251.png

     

  • ntt56k4 Profile Picture
    219 on at

    nvm i got I had to use the value below 

     

    {
    Attachments: RenameColumns(
    Gallery.Selected.Attachments,
    "Value",
    "ContentBytes",
    "DisplayName",
    "Name"
    ),

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard