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 / Create multiple html t...
Power Automate
Answered

Create multiple html tables from array based on matching values

(0) ShareShare
ReportReport
Posted on by 18
Hello, I am looking for some help on creating a flow that will output multiple html tables in an email, but the tables will be separated based on matching values from the parsed json array. I have been working on this for a few days but cannot get the output right, or any output. I know I will need to use loops + variables to be able to match values and create the multiple tables. Unfortunately, I cannot copy my flow as it contains confidential information. I have created an example array/schema below and the expected/desired output. The matching value = Desc.
 
****As additional information, I am running a query against a powerBI data set, then parsing the json as shown below. Using ChatGPT, I just run into more problems. Thanks in advance!
 

Sample parsed json
 
Content  
{
    "DataTable[Name]" "Ben",
        "DataTable[Desc]" "Male",
        "DataTable[Value] "19" 
  },
  {
    "DataTable[Name]" "Pip",
        "DataTable[Desc]" "Male",
        "DataTable[Value] "99" 
  },
  {
    "DataTable[Name]" "Chaz",
        "DataTable[Desc]" "Alien",
        "DataTable[Value] "1" 
  },
  {
    "DataTable[Name]" "Han",
        "DataTable[Desc]" "Mutant",
        "DataTable[Value] "7" 
  },
  {
    "DataTable[Name]" "Luke",
        "DataTable[Desc]" "Alien",
        "DataTable[Value] "4" 
  }

Schema
{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "DataTable[Name]": {
                "type": "string"
            },
            "DataTable[Desc]": {
                "type": "string"
            },
            "DataTable[Value]": {
                "type": "integer"
            }
        },
        "required": [
            "DataTable[Name]",
            "DataTable[Desc]",
            "DataTable[Value]"
        ]
    }
}
 
Desired Output
 
Desc: Alien
Name Value
Luke 4
Chaz 1
   
Desc: Male
Name Value
Ben 19
Pip 99
   
Desc: Mutant
Name Value
Han 7
Categories:
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Hi there,
     
    Use this flow. You can also download it from here.
     
     
     
    Output:
  • ChazTime Profile Picture
    18 on at
    This worked! Thank you for the details! I was able to work through some issues. My flow had most of these items but in the wrong places! Thank you again!!! @Sudeep!

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard