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

Notifications

Announcements

No record found.

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
    237,996 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
    237,996 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans