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
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.
Regards,
Michael
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.
This is how the body of the email looks like. ( the Header option was on YES).
And this is how it looks like without Header.
Regards,
Lucas