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 / remove row or blank ou...
Power Automate
Unanswered

remove row or blank out in html table

(0) ShareShare
ReportReport
Posted on by 196

Hello,

 

In an html table viewed in outlook can I remove or blank out the product if there is no value in the qty of bottles column.

In the top table I want to remove Balvenie Doublewood 12yo or the second table Aerstone Sea Cask

 

For the points table I have  

if(greater(item()?['PointsQuantity'],0),item()?['Product'],null)
 
Any ideas
Ross
 
rosscortb_0-1674127813770.png

 

rosscortb_1-1674127829112.png

 

Categories:
I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @rosscortb Construct your table in a compose rather than using from select. You need 3 compose actions for this.

    In first compose you need to construct blank <tr><td> for product only then in second compose in which you will have product <tr><td> only then in 3rd compose construct whole html code. Then use condition

     

    if(equals(output(compose2),output(compose1),null,output(compose2)) in 3rd compose.

     

    Example-

    Compose1 <tr><td>Product</td><td></td></tr>

    Compose2 <tr><td>Product></td><td><if(...)</td></tr>

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • rosscortb Profile Picture
    196 on at

    @Hardesh15 Can you break down a little more for please? I'm struggling to follow that.

  • rosscortb Profile Picture
    196 on at

    @Hardesh15 Actually had another thought on it so tried this. 

    rosscortb_0-1674212555604.png

    if(equals(body('Create_HTML_table_6'),body('Create_HTML_table_5')),null,body('Create_HTML_table_6'))
     
    but got this 
    rosscortb_1-1674212623662.png

     

     

    Thanks

    Ross

     

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @rosscortb  Please use compose actions. In your case it will still leave Product header if both html tables are equal.

    Hardesh15_0-1674213309985.png

    Use in this way-

    Hardesh15_1-1674213538037.png

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard