Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 7BD4UQlSwqrFDvebZpmV77
Power Automate - Building Flows
Unanswered

Generate a HTML report for email that contains tabular data and images

Like (0) ShareShare
ReportReport
Posted on 1 Nov 2022 04:39:48 by 1,207

This might be a bit ambitious to explain.

 

I have created a report in Power Automate for displaying completed inspections which will be sent by email. Ideally I wanted to create a PDF but my report contains too many images so I can't use the free OneDrive conversion from HTML to PDF method as that is limited to 2MB.

 

The inspection is created in Power Apps and stored in a SharePoint list. Associated images are stored in a SharePoint library.

 

An asset can have multiple observations - one observation = a sharepoint record.

An observation can have multiple images. Stored in SharePoint library.

 

I have managed to output HTML in the following format:

 

Asset Number 1

 

Observation Number Observation Name Result  Score
1 Obs 1 Pass 60
2 Obs 2 Fail 30

 

Observation 1 Images

Image 1 Image 1 comment for obs 1
Image 2 Image 2 comment for obs 1

 

Observation 2 Images

Image 1 Image 1 comment for obs 2
Image 2 Image 2 comment for obs 2

 

Asset Number 2

 

Observation 1 Images

Image 1 Image 1 comment for obs 1
Image 2 Image 2 comment for obs 1

 

I would prefer the Observation images to appear directly underneath the related observation. For example:

 

Asset Number 1

 

 

Observation Number Observation Name Result Score
1 Obs 1 Pass 60

 

Observation 1 Images

Image 1 Image 1 comment for obs 1
Image 2 Image 2 comment for obs 1

 

Observation Number Observation Name Result Score
2 Obs 2 Fail 30

 

Observation 2 Images

Image 1 Image 1 comment for obs 2
Image 2 Image 2 comment for obs 2

 

I have an array of asset numbers that I am using Appy to each to filter the related images and observations.

 

Screen Shot 2022-11-01 at 17.32.20.png

 

This gives me an array of observations and an array of images that are related to the asset inspected.

 

I am then using Create HTML Table to produce a table of observations and a table of images.

 

What I want instead is to produce a single row table with the observation followed by the table of images.

 

Sorry if this is a bit vague and impenetrable. Happy to provide more detail. 

 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started