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

Collecting records to send in one email

Hello All,

 

I've been trying to create a flow that collects  records from an entity in the CDS and send it in one email.

 

I used "Get List of records" to filter the records I want, and I was able tu put in the email body the rows I want to retrive, but when I ran the flow, it automatically created and apply to each to the send email acction and it send 1 email per each record. 

 

Is there is a way to create an output that collects the whole records into a table format and be able to put that output into the email body ?

 

Thank you,

Lucas

 

 

 

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Collecting records to send in one email

Hi @Lucas,

 

Yes, there is.

We could take use of the Create HTML table Action, check the following blog for more details:

Build flows with HTML Tables, CSVs and other new features like OCR and image content detection

 

Flow the configuration shown in the image:

Note:

Under the Create HTML table, click Advanced option, select to include headers.

Under Advanced option of the Send an Email Action, Select Is HTML as YES.

33.PNG

Regards,

Michael

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

Re: Collecting records to send in one email

Hello @v-micsh-msft,

 

Thank you for you quickly answear Michael, I've tried this before, but it seems like the IS HTML as YES doesn't work.

 

followupflow.png

 

This is how the body of the email looks like. ( the Header option was on YES).

 

no headers.png

And this is how it looks like without Header.

 

Regards,

Lucas

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate 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 Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (6,274)