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 / Only add html table to...
Power Automate
Unanswered

Only add html table to email if there is content for multiple tables

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I am trying to make a summary report that takes data from multiple SharePoint lists, creates HTML tables and an email is send to each department with their results. 

 

If there is no content in a HTML table, then the headers are present with no data. I don't want to show the table if there is no content (or give a statement of "You have no results"). I have got around this in the past by having a condition of "if the length of the table is greater than 0, send the email. If not then no action". This works great for one HTML table. 

 

However, I want to send an email with multiple HTML tables in so the email action must be outside the condition that checks for length. I thought i could just append it to a variable but all of this is inside an apply to each (for each department) so the results accumulate in the variable and the last department gets everyone's results. 

Below is what i currently have:

The 'Get data' scope has 3 'Get items' actions

All scopes in the apply to each are the same as the one shown. 

mrsamd_0-1657888388884.pngmrsamd_1-1657888435719.png

 

Categories:
I have the same question (0)
  • SD-29041212-0 Profile Picture
    4 on at
    Hi, 
     
    I am also having the same issue and cant find an answer. 
    Did you every work it out?
  • SD-29041212-0 Profile Picture
    4 on at
    Oh........ Thats sad.
     
    This is my own post from 3 years ago. 
    Still no answer. 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard