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 / Problem Sorting(Order ...
Power Automate
Answered

Problem Sorting(Order By) D365 FnO List Item Present in the Record

(0) ShareShare
ReportReport
Posted on by 16

Hi,

 

I am trying to use Order By Clause using List Items Present in the table(D365 Fin & Ops Connecter). All i want is to sort the records in Desc Order. 

 

I tried with FieldName Desc in the Order By Query.However, It is giving me an error. If any one can help or suggest what should i do to fetch the Latest record?PowerAutomateProblem.JPG

 

 

 

Regards,

Sumeet

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at
  • Sumeet Profile Picture
    16 on at

    Yes, I am. Only difference is i am using D365 fin & Ops Connector here to list the item present in table.

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @Sumeet ,

     

    Could you please take a try to get the record with workflow definition language as my screenshot below:

    1.png

    first(body('Lists_items_present_in_table')?['value'])

    Or

    last(body('Lists_items_present_in_table')?['value'])

     

    Or if you want to filter the record in the list record action, please make sure that the column name is correct and use the asc or desc keyword:

    https://powerusers.microsoft.com/t5/Building-Flows/Sytnax-for-Odata-Order-By/td-p/55185

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Sumeet Profile Picture
    16 on at

     

    Thank you Alice. By making use of Last() and First() solved my query. 🙂

     

    PS: FieldName Asc or Desc still not working. Although fields are present in the Entity. I dont know the  why.

     

    Anyways, Thank you again 🙂

     

    Regards,

    Sumeet

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard