web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Please Optimize this code
Power Automate
Answered

Please Optimize this code

(0) ShareShare
ReportReport
Posted on by 128

Can someone please optimize this code so that my result of data have GRIDS in them.

I am merging 2 create html table action.

 

<table>
<thead>
<tr>
<th>Date</th>
<th>Records</th>
<th>Dials</th>
<th>1st Pass Dials</th>
<th>Dials/Record</th>
<th>Contacts</th>
<th>Contacts/Hour</th>
<th>Contact Rate</th>
<th>Submissions %</th>
<th>Total Submissions</th>
<th>Payable %</th>
<th>Billable Transactions</th>
<th>Revenue</th>
<th>Rev / Billable Transaction</th>
<th>Rev / Submission</th>
<th>Rev / Contact</th>
<th>Hours</th>
<th>RRPH</th>
<th>Records/Hr</th>
<th>Dials/Hour</th>
<th>Cost</th>
<th>Profit</th>
<th>PPH</th>
<th>MM%</th>
</tr>
</thead>
<tbody>
@{split(split(body('Create_HTML_table'),'<tbody>')[1],'</tbody>')[0]}
@{split(split(body('Create_HTML_table_3'),'<tbody>')[1],'</tbody>')[0]}
</tbody>
</table>

 

 

Below is the result of the above code.

Amirin_2-1692051344935.png

 

And this is the result that I want..

Amirin_3-1692051439533.png

 

 

 

 

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Amirin ,

     

    Please try,

     

    <table border="1" cellspacing="0">

    <thead>
    <tr bgcolor="blue">
    <th>Date</th>
    <th>Records</th>
    <th>Dials</th>
    <th>1st Pass Dials</th>
    <th>Dials/Record</th>
    <th>Contacts</th>
    <th>Contacts/Hour</th>
    <th>Contact Rate</th>
    <th>Submissions %</th>
    <th>Total Submissions</th>
    <th>Payable %</th>
    <th>Billable Transactions</th>
    <th>Revenue</th>
    <th>Rev / Billable Transaction</th>
    <th>Rev / Submission</th>
    <th>Rev / Contact</th>
    <th>Hours</th>
    <th>RRPH</th>
    <th>Records/Hr</th>
    <th>Dials/Hour</th>
    <th>Cost</th>
    <th>Profit</th>
    <th>PPH</th>
    <th>MM%</th>
    </tr>
    </thead>
    <tbody>
    @{split(split(body('Create_HTML_table'),'<tbody>')[1],'</tbody>')[0]}
    @{split(split(body('Create_HTML_table_3'),'<tbody>')[1],'</tbody>')[0]}
    </tbody>
    </table>

     

    Best Regards,

    Bof

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard