cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
knguyen
Level: Powered On

Microsoft flows with check boxes in email

Hello,

 

I have created a microsoft flow for when a new item is created in my sharepoint list an email gets send to to a particular email address. Everything works great, however when I include a checkbox value to the body of the email "an apply to each" field pops up - I continue to save the flow.

 

On the sharepoint list, when I create a new item and on the checkbox field I ticked 3 values and hit save.  I then receive 3 separate emails for the 3 checkboxes that I chosed.  Is there a way to combine all the checkbox value I chosed into 1 single email instead of the number of check boxes I tick?

 

Note: on the Sharepoint list all the checkboxes that I chosed is saved into one single column/cell.

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Microsoft flows with check boxes in email

Hi @knguyen,

 

Do you take a try with the solution that I provided on your side?

According to the screenshot of your flow that you provided, I find that there are some different between your flow and mine. Within your flow, you add "Send an email" action within "Apply to each", it would send emails based on the number of loop. 

 

Please take a try to add "Send an email" action outside "Apply to each" action:22.JPG

Note: You can upload a pbix file to Onedrive or any web storage and share the link. Do mask sensitive data before uploading

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: Microsoft flows with check boxes in email

Hi @knguyen,

 

Could you please share a bit more about the Checkbox field of your SharePoint list?

I suppose that Checkbox field that you mentioned is a Choice type in your SharePoint list and you enable Checkboxes (allow multiple selections) in Display choices using. Is it true?20.jpgThe issue is confirmed on my side, if you want to combine all checkbox value into a single email, please take a try with the following workaround:

  • Add “When an item is created” trigger.
  • Add Variables-> “Initialize variable” action, Name set to CombineValue, Type set to String, Value set to null.
  • Add a “Apply to each”, Input parameter set to EmailTag content which is the Checkbox field. Within “Apply to each”, add “Compose” action, Input set to following formula:

 

concat(item()?['Value'],';',variables('CombineValue')) 

 

Add “Set variable” action, Name choose CombineValue, Value set to output of “Compose” action.

 

  • Add a “Send an email” action, Body field set to variable CombineValue.

Image reference:16.JPG

 

17.JPG

 

Note: EmailTag is a Choice type column of SharePoint list which enable Checkboxes (allow multiple selections) in Display choices using.

 

The flow works successfully as below:18.JPG

 

19.JPG

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
knguyen
Level: Powered On

Re: Microsoft flows with check boxes in email

Hello @v-xida-msft

 

Thank you so much for looking into tihs and helping out!

 

Below is what I did below, and it did combined the checkboxes.  However, on my sharepoint list If I ticked on 3 check boxes and hit save.  I receive 3 emails, the first email contains an output of 1 checkbox, the second with 2 checkbox outputs and the 3rd email with 3 checkbox outputs (image below).

 

In addition, If i have 2 or 3 values with checkboxes do I have to perform the same steps for each?

 

sharepoint1.JPGsharepoint2.JPG

sharepoint3.JPG

 

 

Thank you again!

 

Community Support Team
Community Support Team

Re: Microsoft flows with check boxes in email

Hi @knguyen,

 

Do you take a try with the solution that I provided on your side?

According to the screenshot of your flow that you provided, I find that there are some different between your flow and mine. Within your flow, you add "Send an email" action within "Apply to each", it would send emails based on the number of loop. 

 

Please take a try to add "Send an email" action outside "Apply to each" action:22.JPG

Note: You can upload a pbix file to Onedrive or any web storage and share the link. Do mask sensitive data before uploading

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

knguyen
Level: Powered On

Re: Microsoft flows with check boxes in email

@v-xida-msftthank you so much! that worked flawlessly! much appreciated.

 

flow1.JPGflows2.JPG

 

 

GrischkePro
Level: Powered On

Re: Microsoft flows with check boxes in email

Thanks, it worked for me, however, the order is back to front. Is there an easy way to turn it around to the original order?

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 386 members 4,469 guests
Please welcome our newest community members: