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 / Sorting and Slicing us...
Power Automate
Answered

Sorting and Slicing using Get Items

(2) ShareShare
ReportReport
Posted on by 17

Hello, 

 

I am trying to build a flow that will use the Get items block to sort the columns in a SharePoint list by descending order and then give me the top 5 results for each column. 

 

I don't think the 'Order By' section will do me any good because I need the Title and each individual column to be sorted in descending order and then only return the top 5 results from each column. 

 

Is there a way to do this just using the Get items block? Would I need to build a customer array? 

 

I would appreciate any insight!

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @jnovoa36 

     

    Your options are multiple Get Items specifying each column name and title under the Order By filter. If you want to use one Get Items and use the array values to sort each column then have a look at this blog by Paul.

     

    Sort an Array of Objects with Power Automate (tachytelic.net)

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard