Print a table using power automate

Posted on 2020-02-18,1 min read

In Power Automate, we can create a table easily with "Create HTML table" action. However, the print table doesn't have border so it looks not pretty.
E.g: List all won and lost opportunities in CRM.

We could add an extra action "Compose" to give the table with border:
by applying replace function to output body from previous step, replace table tag with bordered table tag:
replace(body('Create_HTML_table'),'<table>','<table border="1" style="border-collapse:collapse">')

Then add Compose output in email content:

Fixed result:

下一篇: How to authenticate subdomain in Dynamics Marketing→