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 / BUG - multi selection ...
Power Apps
Answered

BUG - multi selection in combo box for e-mails

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good Afternoon

 

i have created an app where the user can enter free text, and some attachments, then select multiple people to e-mail using a combo box (comboBox6) for selection. It has a connection to Outlook and to the spreadsheet containing the e-mail addresses. It was woking very well, untill friday 1st June when the multi send stopped working. you can still select who to send it to, however the actual e-mail only sends to the last peoson on the list, not all selected. No code was changed. it just stopped working for all users. I have checked everything in the app and there are no errors. Ive Deleted and re-added the combo box, deteted and re-connected the spreadsheet. nothing seems to be fixing the problem. the code in the 'send e-mail' button is as followss (and worked perfectly up until the 1st June):

 

Office365.SendEmail(ComboBox6.Selected.'e-mail address',"SiteNotesApp "&"Notification "&" "&DatePicker1,Concatenate("Site: ","<br>")&'Site Name Lable D/E'&Concatenate("<br><br>","Job No: ","<br>")&'Job No. Lable D/E'&Concatenate("<br><br>","Note Type: ","<br>")&'Note Type Lable D/E'&Concatenate("<br><br>","Detail: ","<br>")&'Main Body Text D/E',{Attachments:ClearCollect(Colattach,{Name:"QuickSnap.jpg",ContentBytes:'QuickSnaps Image D/E'.Image,'@odata.type':""},{Name:"PhotoUpload.jpg",ContentBytes:'UploadedImage D/E'.Image,'@odata.type':""}),IsHtml:true})

 

i belive this could be a bug within powerapps rather than the app i have built, purley because it stopped working without any change from my end. 

 

Any help/info to resolve this would be great.

Categories:
  • Verified answer
    dinusc Profile Picture
    Microsoft Employee on at

    Hello AndyFitz,

     

    I cannot explain the reason your application stopped working recently, but I do see an issue in your formula that sends emails. The issue is that you use "ComboBox6.Selected" which contains only the last selected item and is usually used in a "single-select". Try using "ComboBox6.SelectedItems" instead. That property contains all the selected items. Please note that the "SelectedItems" property is a table (while Selected is a record type) so you may also need to use "Concat" function in order to convert your table to a list of comma-separated values. Please see this for more details: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-concatenate

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    HI dinusc

     

    Thank you for the quick response. This has solved the issue! thank you!

     

    no idea why this worked before up until friday, but thank you for the fix! 

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard