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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SQL Queries to create ...
Power Automate
Unanswered

SQL Queries to create HTML File.

(0) ShareShare
ReportReport
Posted on by 144

Hey All!

 

I have 3 SQL tables which I want to pull data from to create a HTML report.

 

Example of my tables.

Groups

IDgroup_name
1Group 1
2Group 2
3Group 3

 

Questions
(Questions.q_groups = Groups.ID)

IDquestionq_group
1Question 11
2Question 21
3Question 32
4Question 42
5Question 53
6Question 63

 

Answers
(Answers.1_id = Questions.ID, Answers.q_groups = Groups_ID)

IDq_idq_groupanswer
111true
221false
332false
442true
553true
663false

 

What I would like my outcome to look like.

Group 1
Question 1 - true
Question 2 - False

 

Group 2 

Question 3 - false

Question 4 - true

 

Group 3

Question 5 - true

Question 6 - false

 

My flow currently looks like this:
Flow - Net Admin Issue.PNG

 

The Output looks like this:

Pre-Visit Tasks

{}

 

Router, Firewall, PBX

{"Table1":[{"question":"Do they have Meraki or USG?"},{"question":"Does the site have redundant WANs?"},{"question":"Are Firewall rules appropiate?"},{"question":"Is Content Filter enabled?"},{"question":"Is Advanced Threats enabled?"},{"question":"Are alerts enabled?"},{"question":"Review Event/Threat logs?"},{"question":"Cloud only, DHCP & DNS Configured?"},{"question":"Do they have 3CX?"},{"question":"Do they have Full Unifi at all sites?"},{"question":"Are all APs in Cloud Controller?"},{"question":"Are all APs mounted in suitable location?"},{"question":"Is Firmware Upto Date?"},{"question":"Is hardware in date?"}]}

 

Server Room & Cabs

{"Table1":[{"question":"Are all servers operating without visual warnings?"},{"question":"Is airflow to the servers suitable?"},{"question":"Are all devices plugged into a UPS?"},{"question":"Is the UPS Managed and Smart? Can you get 30 Mins runtime?"},{"question":"Are all UPS's in Warranty?"},{"question":"Are UPS's recorded in ML? Serial/Model/Location/Warranty?"},{"question":"Is Cabling tidy?"},{"question":"Are switches UniFi?"},{"question":"All critical devices labled with IP?"},{"question":"Are all servers and backup appliances on Gigabit?"},{"question":"Are servers in warranty?"},{"question":"Record server Serial Tag and Warranty in ML."}]}

 

RMM Checks

{"Table1":[{"question":"Do all servers have the agent installed?"},{"question":"Are servers running support OS?"},{"question":"Are servers in the correct patch group?"},{"question":"Are servers disks >10%?"},{"question":"All sites WAN IP's listed?"},{"question":"Do all endpoints have Webroot installed?"},{"question":"Are endpoints in the correct policy?"}]}

 

Host

{}

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @MrDannyHarry  could you test this query in sql management and show us the result?

  • MrDannyHarry Profile Picture
    144 on at

    @ChristianAbata 

     

    Hey,

     

    I have just chosen a random group to show what I am getting back

    Flow - SQL.PNG

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard