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 HTML table list...
Power Automate
Unanswered

Create HTML table list from property values from a JSON array to create a list

(0) ShareShare
ReportReport
Posted on by 5

Hi,

 

I am trying to create a flow that runs once every week to generate a list of filenames with its metadata tag and sends one email. This is help review and validate all files have the right metadata value applied by other flows. I had no issues creating such a flow for metadata columns with single value in it. The bit where I am stuck at is where metadata column allow multi choice column. After reading its JSON file I realised that these multi choice metadata are nested within a JSON array with multiple objects.

 

I was not able to find any info anywhere a way to extract the value against the property "Label", is this even possible?

 

Here is an example of the JSON file.

 

 

[
 {
 "ID": 43296,
 "Meta": [
 {
 "Label": "Label1",
 "Path": null,
 "Value": "Label1.Value"
 }
 ],
 "{Name}": "File1",
 "{FilenameWithExtension}": "File1.pdf"
 },
 {
 "ID": 43316,
 "Meta": [
 {
 "Label": "Label2",
 "Path": null,
 "Value": "Label2.Value"
 }
 ],
 "{Name}": "File2",
 "{FilenameWithExtension}": "File2.pdf"
 },
 {
 "ID": 43377,
 "Meta": [
 {
 "Label": "Label3",
 "Path": null,
 "Value": "Label3.Value"
 },
 {
 "Label": "Label4",
 "Path": null,
 "Value": "Label4.Value"
 }
 ],
 "{Name}": "File3",
 "{FilenameWithExtension}": "File3.pdf"
 },
 {
 "ID": 43379,
 "Meta": [
 {
 "Label": "Label1",
 "Path": null,
 "Value": "Label1.Value"
 },
 {
 "Label": "Label4",
 "Path": null,
 "Value": "Label4.Value"
 },
 {
 "Label": "Label7",
 "Path": null,
 "Value": "Label7.Value"
 }
 ],
 "{Name}": "File4",
 "{FilenameWithExtension}": "File4.pdf"
 }
]

 

  From the above code how do I create the follwoing HTML table?

FilenameMeta Label
File1.pdfLabel1
File2.pdfLabel2
File3.pdfLabel3, Label4
File4.pdfLabel1, Label4

 

Please note, the Meta Label column could have upto 13tags within it. So having a dynamic expression to help complete the HTML table would be helpful.

 

Thanks in advance. 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @luciferxiii :

    I've made a test for your reference:

    vbofengmsft_0-1626073584945.png

    vbofengmsft_1-1626073667385.png

    vbofengmsft_2-1626073731181.png

    vbofengmsft_3-1626073743342.png

    The Result:

    vbofengmsft_4-1626073782215.png

    Best Regards,
    Bof

     

     

  • luciferxiii Profile Picture
    5 on at

    Hi @v-bofeng-msft ,

     

    Thank you for working this out. This is exactly what I am after. 

     

    One minor thing, with the delimiters ';' that you have included in the flow is it possible to not add after the  last value (as highlighted)?

     

    luciferxiii_0-1626225376374.png

     

     

  • v-bofeng-msft Profile Picture
    on at

    Hi @luciferxiii :

    Only need to intercept the characters before the last digit of the string.

    vbofengmsft_0-1626226300710.png

    take(variables('Meta Label'),sub(length(variables('Meta Label')),1))

    The Result:

    vbofengmsft_1-1626226395737.png

    Best Regards,

    Bof

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard