cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lucas
Advocate V
Advocate V

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

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.

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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,908)