cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anzilYoosuf
New Member

Power Automate -HTML Table Formatting

Dear All,

I am working on flow and need to send a table in my email.

I got an HTML table code and used it. Although the table worked properly, however, I observed my mail signature was as well converted to Table.

How do I exclude my Email Signature from the Mail table formate?

I am using power automate create html table and then styling it with below code:

<style>
table {
  border: 1px solid #006472;
  background-color: #f5f9fa;
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}
table td, table th {
  border: 1px solid #AAAAAA;
  padding: 3px 2px;
}
table tbody td {
  font-size: 13px;
}
table thead {
  background: #1C6EA4;
  border-bottom: 2px solid #444444;
}
table thead th {
  font-size: 15px;
  font-weight: bold;
  color: #FFFFFF;
  border-left: 2px solid #D0E4F5;
}
table thead th:first-child {
  border-left: none;
}
</style>
@{body('Create_HTML_table')}

 

kindly help

1 ACCEPTED SOLUTION

Accepted Solutions
rsaikrishna
Dual Super User
Dual Super User

@anzilYoosuf 

 

In the flow, when you read Email Body, identify the HTML tags where your signature is included. 

 

With string functions such as IndexOf() and  Substring(), try to truncate the unwanted msg from your email. Then pass rest of the email content to HTML table. 

 

Give a try of above approach and it will work.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

1 REPLY 1
rsaikrishna
Dual Super User
Dual Super User

@anzilYoosuf 

 

In the flow, when you read Email Body, identify the HTML tags where your signature is included. 

 

With string functions such as IndexOf() and  Substring(), try to truncate the unwanted msg from your email. Then pass rest of the email content to HTML table. 

 

Give a try of above approach and it will work.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,132)