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 / Send Mail (Power Apps ...
Power Apps
Answered

Send Mail (Power Apps button) to multiple people

(0) ShareShare
ReportReport
Posted on by 15

Hi,

in a Power BI report in which a Power App is also integrated, I'd like to select multiple mail addresses and click on the Send-Mail-Button of Power Apps.

So far, it works when I send mail to only one mail address (receiver). It's because currently my format text in the Power Apps development is:

Mail.SendEmail(
     First( [@PowerBIIntegration].Data ).Receiver_Mail,

... )

So I guess instead of First(... I need to use something else.

I was trying to adapt it for sending to multiple users by using "FirstN", but it doesn't work in the formular bar.

How can I adapt this?

Thanks

Many regards

Categories:
I have the same question (0)
  • jesse_sql Profile Picture
    30 on at

    Hi @Dn_wemn , have you tried using the ForAll-function to loop through the e-mails? This might help:
    ForAll function in Power Apps - Power Platform | Microsoft Learn

  • Dn_wemn Profile Picture
    15 on at

    @jesse_sql  Hi, I tried using ForAll, but it hasn't worked.

    After loading the SQL table "Appointment_Comment_helper" in Add Data, basically this is what I tried:

    Dn_wemn_0-1673553193733.png

    Field SR_Mail is from this table.

    I might need to add a formula after the table expression, but I have no idea how to proceed.

     

  • Verified answer
    victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    you can use ForAll to solve your problem, but we can create another one if you have to send it to many users, so I suggest if the message is the same, send one email to all of them like this:

    Mail.SendEmail(
     Concat( [@PowerBIIntegration].Data, Receiver_Mail, ";"),
    
    ... )

    But if you really need to send each one an email you have to do this:

    ForAll([@PowerBIIntegration].Data,
    Mail.SendEmail(
     Receiver_Mail,
    
    ... )
    )

     

    I hope it helps 🙂

    Any doubts please let me know

  • Dn_wemn Profile Picture
    15 on at

    Thank you very much. It works with Concat.

    Tried it before, but had mistake with syntax. Now all good 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard