cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
PaulB1
Level: Powered On

Send Email to multiple addresses from a listbox

I have a form with a LISTBOX. The listbox contains the names of people who have worked on a project and who need to be informed about any new safety issue on site.

The LISTBOX is dervived from a SQLSERVER View from which I select those that need to receive an email with the new safety details. So I wish to select the employees and together with the Authoriser send an email to only the selected people.

Any suggestions?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Send Email to multiple addresses from a listbox

Hi @PaulB1 ,

 

What is the data source in your sql?

And what is your formula expression for enad email?

Could you please make sure the ones your select in your O365 account firstly?

Do you add O 365 outlook as datasource?

 

I test as next:

Data Souce:

20190409sqlemail.PNG

App test:

Add one dropdown and then,Dropdown1.OnSelectSmiley Very Happyistinct('[dbo].[Table_20190409Email]',Email)

Add one button control and Button2.OnSelectSmiley Surprisedffice365.SendEmail(Dropdown1.Selected.Result,"Send email from PowerApps","Item: hello")

20190409sqlemailtest.PNG

 

Then check the result:

20190409sqlemailresult.PNG

 

If you want to send more users at onece , you can choose to use ComboBox control, then the Button.OnSelectSmiley Surprisedffice365.SendEmail(Concat(ComboBox1.SelectedItems,Result&","),"Send email from PowerApps","Item: hello")    (ComboBox1 is my test ComboBox control's name, you can change it to yours.)

20190409comboboxemail.PNG

 

20190409comboemailresult.PNG

More information:

connection-office365-outlook

 

Hope this could be helpful.

Best Regards.

Yumia

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Send Email to multiple addresses from a listbox

Hi @PaulB1 ,

 

What is the data source in your sql?

And what is your formula expression for enad email?

Could you please make sure the ones your select in your O365 account firstly?

Do you add O 365 outlook as datasource?

 

I test as next:

Data Souce:

20190409sqlemail.PNG

App test:

Add one dropdown and then,Dropdown1.OnSelectSmiley Very Happyistinct('[dbo].[Table_20190409Email]',Email)

Add one button control and Button2.OnSelectSmiley Surprisedffice365.SendEmail(Dropdown1.Selected.Result,"Send email from PowerApps","Item: hello")

20190409sqlemailtest.PNG

 

Then check the result:

20190409sqlemailresult.PNG

 

If you want to send more users at onece , you can choose to use ComboBox control, then the Button.OnSelectSmiley Surprisedffice365.SendEmail(Concat(ComboBox1.SelectedItems,Result&","),"Send email from PowerApps","Item: hello")    (ComboBox1 is my test ComboBox control's name, you can change it to yours.)

20190409comboboxemail.PNG

 

20190409comboemailresult.PNG

More information:

connection-office365-outlook

 

Hope this could be helpful.

Best Regards.

Yumia

View solution in original post

Administrator
Administrator

Re: Send Email to multiple addresses from a listbox

Hi @PaulB1 can you review the above reply and update the thread?

 

@TopShelf-MSFT 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 69 members 3,501 guests
Please welcome our newest community members: