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 email to people i...
Power Apps
Unanswered

Send email to people in gallery if selected from checkbox

(0) ShareShare
ReportReport
Posted on by 297

Hi All, 

 

I have a gallery that shows a list of people. What i'd like to do is on select of a button it emails those people only. Is this possible? Currently i dont have any code in the checkbox and nothing in the button. If someone could help it would be greatly appreciated. 

Capture.JPG
Categories:
  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @jsmith87 

    Assuming that the name of your checkbox in the gallery template is chkInclude and that there's also a label in the gallery with the email address (lblEmail), the formula would look like this:

    Office365Outlook.SendEmailV2(
     Concat(
     Filter(Gallery1.AllItems, chkInclude.Value=True),
     lblEmail.Text, ";")
     ),
     "Enter the email title here", 
     "Enter your email message here"
     )
    )

     

  • Jon Unzueta Profile Picture
    1,836 Super User 2026 Season 1 on at

    @jsmith87 
    when you do the oncheck you save that person's email in a collection and when you do the on-uncheck, you remove it from the collection.

    then in the button you have to make a forall of the whole collection.

    something like this
    ForAll(
    collection,
    Office365Outlook.SendEmailV2(
    thisitem.SEmail,
    "Subject",
    "Body,
    {Importance: "High"}
    )
    );

    If i help you give a kudo or mark solution as accepted solution

  • jsmith87 Profile Picture
    297 on at

    2.JPG

    Hi I have called my collection CONTACT oncheck  but when it gets to this item part it shows an error and This.Item doesn't show as an option

  • Jon Unzueta Profile Picture
    1,836 Super User 2026 Season 1 on at

    @jsmith87 

    Maybe is thisrecord.SEmail

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard