cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
knguyen
Helper I
Helper I

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

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
v-xida-msft
Community Support
Community Support

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.

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!

 

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.

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

 

flow1.JPGflows2.JPG

 

 

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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,135)