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 Apps / two html tables in bod...
Power Apps
Unanswered

two html tables in body using office 365 formula

(0) ShareShare
ReportReport
Posted on by 132

Hi to all,

 

I have 2 htmls that i want the to be in the body of the email . How can i create space between them in the body of the mail. ?

Now i hav something like one table inside another

vaso_0-1701185372023.png

 

Categories:
I have the same question (0)
  • Geeks_D Profile Picture
    1,169 on at

    Could you please share the HTML code for your table to assist further 

  • vaso Profile Picture
    132 on at

    @Geeks_DHi,

    this is the first HTML

    "<br><br>
    TOTALS
    "&"<br><br>

    "&"<table style=width:100% border=2 cellpadding=5 style=border:1px solid black; border-collapse:collapse>
    <tr>

    <th>Family</th>
    <th>QTY</th>
    <th>CB (estim)</th>
    <tr>
    <td"
    &"<tr>
    <td style=text-align:center>"&ComboBox1_90.Selected.Value&"<td style=text-align:center>"&Label3_6
    &"<td style=text-align:center>"&Label3_12&"<tr>
    <td style=text-align:center>"&ComboBox1_91.Selected.Value&"<td style=text-align:center>"&Label3_7
    &"<td style=text-align:center>"&Label3_13&
    "<tr>
    <td style=text-align:center>"&ComboBox1_92.Selected.Value&"<td style=text-align:center>"&Label3_8
    &"<td style=text-align:center>"&Label3_14

     

     

     

     

     

     

     

    this is the second

    "<br><br>
    Per Client and Item
    "&"<br><br>

    "&"<br><br>

    "&"<br><br>

    "&"<table style=width:100% border=2 cellpadding=5 style=border:1px solid black; border-collapse:collapse>
    <tr>
    <th>Client</th>
    <th>Family</th>
    <th>Product</th>
    <th>Item</th>
    <th>Payment/Comment</th>
    <tr>
    " & If(
    !IsBlank(ComboBox1),
    "<tr>
    <td style=text-align:center>" & ComboBox1.Selected.Client & "</td>
    <td style=text-align:center>" & ComboBox1_1.Selected.Value & "</td>
    <td style=text-align:center>" & ComboBox1_2.Selected.'Family 3' & "</td>
    <td style=text-align:center>" & QTY.Text & "</td>
    <td style=text-align:center>" & PLIROMI.Text & "</td>
    </tr>")

     

    and the formula i use is

    Office365Outlook.SendEmailV2(If(Or(REGION.Selected.Region="Region 1",REGION.Selected.Region="Region 2",REGION.Selected.Region="Region 6"),"vasiliki.tsioni@gr.timacagro.com","vasiliki.tsioni@gr.timacagro.com"),REGION.Selected.Region&" " &month.Text&" Monthly Forecast","Dear all please find below this month's sales forecast"&"<tr>"&HtmlText2.HtmlText& "<tr><td>"&"<br><br>"&HtmlText1.HtmlText,{CC:"vasiliki.tsioni@gr.timacagro.com"&"vasiliki.tsioni@gr.timacagro.com",IsHtml:true})

     

    and the result

     

    vaso_0-1701187829774.png

    i managed to create the gap between them but is like the second html is on the firts column of the other . Can i adjust it?

  • Geeks_D Profile Picture
    1,169 on at

    You need the to close the table tags for the firs table 
    </tr>

    </td>

    Table 2 is inheriting some of the tags from Table 1 because they are still open 
    Check all <tr> and <td > and be sure they are all closed and reopen a new ones for table 2 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard