cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
leyburn19
Level 10

Create HTML and formatting the table in an email

I use 'Create HTML' successfully based on data from a SPand pass the result into an email.  What I would like to do is modify the table result to show borders etc.  Is there a way to do this.  There are no advanced settings I can see for this

1 ACCEPTED SOLUTION

Accepted Solutions
leyburn19
Level 10

Re: Create HTML and formatting the table in an email

OK solved this by adding a second compose "data operations Compose" and used teh following syntax

 

replace(body('Create_HTML_table'),'<table>','<table border="1">')

 

Where 'Create_HTML_table' = the name of the Create HTML compse

 

Basically the replace would allow you to modify anything in the table

View solution in original post

3 REPLIES 3
leyburn19
Level 10

Re: Create HTML and formatting the table in an email

OK solved this by adding a second compose "data operations Compose" and used teh following syntax

 

replace(body('Create_HTML_table'),'<table>','<table border="1">')

 

Where 'Create_HTML_table' = the name of the Create HTML compse

 

Basically the replace would allow you to modify anything in the table

View solution in original post

karthiksankar
Level: Powered On

Re: Create HTML and formatting the table in an email

Please let us know the inputs need to be populated on Create Html From field ..it should be body  or something else. when i tried body it updated sharepoint link not email

leyburn19
Level 10

Re: Create HTML and formatting the table in an email

The inputs in most cases for me is the result from a 'select' action step.  The select puts a rows from a list into an array table with column headers etc which you can then use the result to be put into a create html table.  

 

This does not show borders,  hence the need for the replace function

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Kudoed Authors (Last 30 Days)
Users online (6,619)