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!
Solved! Go to Solution.
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:
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
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?The 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:
concat(item()?['Value'],';',variables('CombineValue'))
Add “Set variable” action, Name choose CombineValue, Value set to output of “Compose” action.
Image reference:
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:
Best regards,
Kris
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?
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:
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
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?
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
User | Count |
---|---|
24 | |
20 | |
9 | |
8 | |
7 |
User | Count |
---|---|
39 | |
30 | |
26 | |
23 | |
13 |