cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Perez
Helper V
Helper V

order by a numeric field

Hi,

i have a flow with a Get Items from sharepoint activity.

im trying to sort the data on the 'Order By' ODATA field in the get items activity, for a numeric column with no decimal places, but keep on getting an error:

Perez_2-1656251524807.png

 

when switching the column to text than it is only filter according to the first digit only.

 

how can i sort according to a numeric column? any idea?

 

thanks Eyal

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @Perez,


I tried to reproduce your issue. Unfortunately I was not able too.

 

Can you share more details about your setup? For example that Filter Query and the settings of your different columns? 

 

Below is the repro which did work on my dev environment. Maybe it is useful for you to compare and find a root cause?

 

1. Impact Number column with settings. I have explicitly set the number of decimal places to 0 btw.

 

risks_repro03.png

 

2. Test data which I used, which is not sorted in descending order yet (Impact column)

risks_repro02.png

3. Test flow I used with the Order By on Impact desc. 

risks_repro.png

View solution in original post

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @Perez,


I tried to reproduce your issue. Unfortunately I was not able too.

 

Can you share more details about your setup? For example that Filter Query and the settings of your different columns? 

 

Below is the repro which did work on my dev environment. Maybe it is useful for you to compare and find a root cause?

 

1. Impact Number column with settings. I have explicitly set the number of decimal places to 0 btw.

 

risks_repro03.png

 

2. Test data which I used, which is not sorted in descending order yet (Impact column)

risks_repro02.png

3. Test flow I used with the Order By on Impact desc. 

risks_repro.png

Hi,

thanks for your help.

following your screenshots i noticed i have case sensetivity issue in the order b y field (rooky mistake...)

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,396)