cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SammyOlsson
Helper I
Helper I

Send email with values from Combobox

Heya!

 

I am bulding an app for users to order hardware from IT-Support

The problem i am having is to get the selected accessories from the combobox below into the email to IT-Support.

When i select multiple items only the last item i choose gets into the email.

SammyOlsson_0-1649070463463.png

 

My "code" regarding the combobox looks like this:

 

"<b>Accessories:</b> " & ComboBox1.Selected.Value & "<br/>" &

 

 

I am using the Office365Outlook.SendEmailV2-connector

 

Thank you in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions

@SammyOlsson ,

Just add before the line break

"<b>Accessories:</b> " & 
Concat(
   ComboBox1.SelectedItems,
   Value & "," & Char(10)
) & "<br/>" &

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @SammyOlsson ,

You need to do this

"<b>Accessories:</b> " & 
Concat(
   ComboBox1.SelectedItems,
   Value & Char(10)
) & "<br/>" &

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Thank you @WarrenBelz for the reply!

 

It worked fine! Tho.. is it possible to get a , between every accessorie you think?

As for now the output in the email is: AccessoriesiPhone Headset in-ear Headset on-ear Samsung Headset in-ear

@SammyOlsson ,

Just add before the line break

"<b>Accessories:</b> " & 
Concat(
   ComboBox1.SelectedItems,
   Value & "," & Char(10)
) & "<br/>" &

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (2,294)