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 / '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
    68,707 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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard