cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jennyntc
New Member

How to used order by in sharepoint?

Hello, I am leaning how to used power automate.

 

If I want to sort data ordinal scale in get items (sharepoint) how can I do?

I want to sort by risk level (high, medium, low)

 

Thank you 

4 REPLIES 4
Gopala_Krishna
Solution Sage
Solution Sage

@Jennyntc 

For sorting the data in the GetItems action of SharePoint you have to specify the column name followed by the sortorder type.

 

Example : I want to sort column called ID in descending order then I can specify the Odata query as "ID desc

 

Columnname sortordertype (Ex: asc for ascending, desc for descending)

 

 

If the information shared helps you please consider giving a thumbs up 👍 and mark solution as resolved

Please follow my website PowerCards for more information related to Power Platform

Thank you 

I try to 'Risklevel desc'

But it cannot sort by High,medium,low 

 

Gopala_Krishna
Solution Sage
Solution Sage

@Jennyntc 

Did you get any error when you passed the query?

What type of column is Risklevel

Did not get any error but it order by

1.medium

2.low

3.high

I want to orderby 1.high 2.medium 3.low

My type of column is 'text'

 

Thank you 🥰

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,412)