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 / ODATA query for MySQL ...
Power Automate
Unanswered

ODATA query for MySQL action to arrange data in a specific order based on predefined values.

(0) ShareShare
ReportReport
Posted on by 6

After extracting the data filtered by creation type, my intention is to arrange the data based on the the approval_type column in the folllowing order : "Initiator" first, followed by "Reviewer" and finally "Approver". I am not sure what went wrong in my ODATA order by query and hope to seek your assistance.

 

ODATA Order By query:

?$orderby=approval_type desc&$orderby=approval_type eq 'Initiator' desc&$orderby=approval_type eq 'Reviewer' desc&$orderby=approval_type eq 'Approver' desc

 

 

This is the error detail that I received:
Expression expected at position 0 in '?$orderby=approval_type desc&$orderby=approval_type eq 'Initiator' desc&$orderby=approval_type eq 'Reviewer' desc&$orderby=approval_type eq 'Approver' desc'.
inner exception: Expression expected at position 0 in '?$orderby=approval_type desc&$orderby=approval_type eq 'Initiator' desc&$orderby=approval_type eq 'Reviewer' desc&$orderby=approval_type eq 'Approver' desc'.
clientRequestId: 6ec5ede0-ecde-4c33-a0dd-9c5f07062dc3

 

 

error.PNG
pa.PNG
Categories:
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at
    $orderby=approval_type eq 'Initiator' desc

    you are mixing filters and sort instructions.  Do either or.

     

    Can't you do all the sorting and filtering in your MySQL native query?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard