Skip to content
Microsoft Dynamics 365

 

Suppose we have many companies in AX 2009 and to simplify the selection of the company list in the Enterprise portal, we can use the below code change to display the company names in an alphabetical order. This will help the AX users to save time in searching and selecting the company name.

 

Open Development workspace and navigate to AOT\Classes\Global\GetAllCompanies() by adding order by clause after Line 18:

 

//select all the companies in which current user’s access level is higher than NoAccess

    while select id,name from DataArea

    //to order alphabetical add order statement

    order by id

        Exists join companyDomainList

 

We're always looking for feedback and would like to hear from you. Please head to the Dynamics 365 Community to start a discussion, ask questions, and tell us what you think!