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

Emailing multiple people in power apps

I need a function that sends an email to the user of the power app and cc's multiple accounts. I only get one cc to work. Can the code below be modified to cc multiple accounts? Office365.SendEmail(User().Email,"title","body",{Cc:abc@gmail.com,"xyz@gmail.com"})
8 REPLIES 8
ericonline
Community Champion
Community Champion

I'm pretty certain. Have you tried adding a semi colon and additional email addresses in the CC area?

Anonymous
Not applicable

Thanks for posting in the community @kywest! Are you still experiencing this issue? If you are, please update the thread and review the latest reply from @ericonline

 

@Anonymous

Hello, 

I have a drop down list with multiple choices (people and groups) and I would like to be able to send an email to all of them when I hit the 'send email' button. On 'OnSelect' button I wrote the below syntax but this only sends an email to the last person that was selected from the drop down list. 

Office365.SendEmail(DataCardValue74.Selected.Email,"Subject","https://web.powerapps.com/apps/27535627256232975692856286459265=" & ID) 

I would like to add 'ForAll()' but I am not sure how.  

I would very much appreciate your help. 

 

Many thanks,

Andreea 

 

 

I'm having the same issue myself. Can't seem to make it work with commas/semicolons.

Use Concat() function to create the destination list of adresses

Look at this post: 

https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Collect-Email-addresses-and-send-them-t...

 

AndreeaM
Frequent Visitor

Unfortunately I have access dennied on the link below. 

 

Thank you,

 

A


@Bubbler wrote:

Use Concat() function to create the destination list of adresses

Look at this post: 

https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Collect-Email-addresses-and-send-them-t...

 



ndreea 

Anonymous
Not applicable

Hello,

 

What worked for me was doing the following under after Cc

{Cc:"email1@mail.com"&";"&"email2@mail.com"}

 

Let me know if it solves your issue as well.

Frederico
Advocate I
Advocate I

Try this:

Office365.SendEmail(User().Email,"title","body",{Cc:"abc@gmail.com;xyz@gmail.com"})

 

This: :"abc@gmail.com;xyz@gmail.com"

 

Instead of: abc@gmail.com,"xyz@gmail.com"

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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