web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Order by an entity

(0) ShareShare
ReportReport
Posted on by 8
Hello everybody, 
 
I have a scenario where one custom entity(previously created by some other developer) when exporting data it automatically orders the data by one of the fields(ItemId in this case). And I don't need this order by. 
I have studied the entity, but I cannot find any order by in the code or the entity.
I have even searched online to find where the entity gets ordererd by, but cannot find anything.
 
I am using D365 F&O.
 
I wanted to ask if is there any place where the entity that does the order by? 
 
Thanks in advance!
 
I have the same question (0)
  • Martin Dráb Profile Picture
    238,740 Most Valuable Professional on at
    D365 consists of many applications, such as Finance and Operations, Sales or Business Central. You're asking in D365 general forum, therefore it's not clear which product you have in mind. Please add this information.
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    Please clarify which product you are using so we can direct you to the right place.
    Best Regards,
    Hana
  • Evi Profile Picture
    8 on at
    I am using D365 F&O.
  • Verified answer
    Martin Dráb Profile Picture
    238,740 Most Valuable Professional on at
    If no order is specified when querying the view, the database server can return the data in any other it finds appropriate. For example, if the entity is based on a single table, I would expect records in the order of the clustered index. But it's not guaranteed.
     
    If you're saying that you don't need particular ordering, then you don't need to do anything.
     
    (Moved from D365 general forum.)

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

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 590 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 349

#3
Diego Mancassola Profile Picture

Diego Mancassola 263

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans