cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
leyburn19
Memorable Member
Memorable Member

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
Memorable Member
Memorable Member

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
Memorable Member
Memorable Member

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

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

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
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (42,015)