Announcements
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.
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" ) )
@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 thisForAll(collection,Office365Outlook.SendEmailV2(thisitem.SEmail,"Subject","Body,{Importance: "High"}));
If i help you give a kudo or mark solution as accepted solution
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
@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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 432 Super User 2026 Season 2
Mohsin Ali 347
WarrenBelz 254 Most Valuable Professional