Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Order by an entity

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!
 
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,149 Most Valuable Professional on at
    Order by an entity
    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.)
  • Evi Profile Picture
    Evi 8 on at
    Order by an entity
    I am using D365 F&O.
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Order by an entity
    Hi,
    Please clarify which product you are using so we can direct you to the right place.
    Best Regards,
    Hana
  • Martin Dráb Profile Picture
    Martin Dráb 230,149 Most Valuable Professional on at
    Order by an entity
    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans