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

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:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 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

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