web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / is it possible to send...
Power Apps
Unanswered

is it possible to send emails using checkboxes to populate email addresses and name ?

(1) ShareShare
ReportReport
Posted on by 2
Morning all
 
 
I am building an app that allows me to communicate with volunteers. In the app i have an email screen with the code below attached to a button on success. I would like to know, is it possible to use a check box to populate the email address and first name into the email body? Therefore, allowing me to email those depending on what stage they are at of volunteering.
 
I have three checkboxes. Onchecked, it collects the first name and email address from a SharePoint list.
 
1. Email all
2. Volunteer 
3. Checks complete
 
 
The current code for sending email. I am unsure how I get it to look at all three checkboxes to see which one is checked then send that email to each person. I would still like to keep the (Send To box) for manual input of emails, if that is possible?
 
Set(_emailRecipientString, Concat(MyPeople, Mail & ";"));          
Office365Outlook.SendEmailV2(_emailRecipientString, TextEmailSubject2_1.Text, RTEBody.HtmlText, {Attachments:RenameColumns(AttachmentControl.Attachments,Value,ContentBytes), Importance:"Normal"});        
Reset(TextEmailSubject2_1);          
Reset(RTEBody);
Reset(AttachmentControl);          
Clear(MyPeople)
 
I am keen to learn and have spent a fair bit of time trying to understand this, but i am struggling.
 
 
 
 
Thank you for taking the time to look at my issue. I struggle to tag people and mark their answers as answers, so please forgive me for that. It is important to say thank you, so I have requested someone to look at this.

Any help would be amazing.
 
 
 
 
 
 
 
 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    Hi
     
    What you are doing looks perfect. I do not see any issues with it how you are building your Email, I would do the exact same thing.
     
    However, use the OnUnChecked to remove the value from your collection and then it will simply and correctly have the 1/2 or 3 you want
     
    What is what I would do.
     
    You have the name and the email. I would add the Type, where Type is essentially some descriptor that you gave the Text of the CheckBox
     
    So you end up with
     
    {
        Name: "",
        Email: "",
        Identifier: "EmailAll",
        SendEmail: false
    }
     
    When someone checks it, it would patch
     
     
    Patch(MyCollection, LookUp(MyCollection, Identifier="EmailAll"), 
        {
            SendEmail: true,
            Name: "Michael",
            Email: "my email"
        }
    );
     
     
    In the OnunCheck update it so that SendEmail = false and you can blank out the name and email
     
    Then in your Email change it to
     
     
    Set(_emailRecipientString, Concat(Filter(MyPeople, SendEmail = true), Mail & ";"))
     
    Now it will only email those that are checked.
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard