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 Automate
Answered

HTML table

(0) ShareShare
ReportReport
Posted on by

I'm trying to create an HTML table from selected items in a SP list. The SP list has a "Master ID" column witch ties multiple rows together and a "ID" column which identifies different lines in the SP list. I want to have all entries with the same "Master ID" to be in the table in a descending order by "ID". Is there a way to do something like this? Thank you for the help.

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @kingy61422,

     

    You could use a Get Items with a filter query on the Master ID column. After that you can sort the results in descending order with a reverse function. 

     

    Below is an example of that approach.

     

    reverse(body('Get_items')['value'])

     

    reverseid_masterid.png

     

     

  • kingy61422 Profile Picture
    on at

    Thank you for the help. My flow is triggered when an item is created or modified. I want to filter using the "ID" from the created/modified item that is the "Master ID" in another SP list. Is there a way for me to filter using dynamic content?

  • Verified answer
    Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @kingy61422,

     

    Yes, in the Get Items you could use the ID from the trigger action in the filter query.

     

    MasterID eq '@{triggerOutputs()?['body/ID']}'

     

    reverseid_masterid02.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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 639

#2
Valantis Profile Picture

Valantis 392

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard