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 Platform Community / Forums / Power Automate / 'Get Items' with ODATA...
Power Automate
Unanswered

'Get Items' with ODATA Filterby and SortBy - Cannot find correct field name

(0) ShareShare
ReportReport
Posted on by 9

Good evening,

 

I have been struggling most of the day with this problem and I getting nowhere!

 

My flow is using a GET ITEMS action to get all rows for a particular project ID; I have the flow working as I want, except for one thing. I want to sort the rows returned by the GET ITEMS by a field within the row.

 

The field is a SharePoint LOOKUP type; I cannot work out the correct field name to use.

 

The error message is:

Error MessageError Message

If I remove the OrderBy the JSON output from the GET ITEMS contains the field I want to sort  by, see below:

 

JSON output within an OData OrderByJSON output within an OData OrderBy

 

How do I reference this field? I tried the field name and appending '/Value' to the field name, but with no luck.

 

Any help would be much appreciated.

 

Thank you in advance.

 
 
 
 
 
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,022 Most Valuable Professional on at

    Lookup columns are complex data types and can't be used in ODATA queries or sorts.  You can try to use Stage_x0020_ID_x300a_ID#Id which is the index for that column.  Its in the trigger as a simple Integer.

  • michaelcscott Profile Picture
    9 on at

    Sorry for the delay in getting back to you.

     

    Thank you for your help.

     

    The only way I could solve this problem was to rejig the LOOKUP column in the master list.

     

    Thanks again.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard