Microsoft Dynamics Ax Interview Questions and Answers

25 September, 2020


Related Blogs


Microsoft Dynamics Ax Interview Questions and Answers

Below are a few Microsoft Dynamics Ax Interview Questions, wherein most of the interviewers would be asking in the following areas, have a look at them.

Q.1) What is Microsoft Dynamics AX?

Ans) Microsoft Dynamics AX is a multi-language, multi-currency, industry-specific, global enterprise resource planning (ERP) software product.

Microsoft Dynamics AX is also known as AXAPTA in previous versions and now referred to as DAX is a registered ERP solution from Microsoft Dynamics family targeting mid-size to large-scale enterprises with highly intuitive, exclusive, and scalable features with rich user experience. Microsoft Dynamics AX ERP is the best value and scalable ERP in the market.

Microsoft Dynamics AX streamlines Financial management, Customer relationship, Human capital management, and Supply chain processes and supports operational and administrative processes for organizations in Manufacturing, Retail, Service-oriented industries, and the Public sector

Q.2) What is the difference between Auto Design Spec & Generated Design?

Ans) Auto Design: An auto design is a report design that has a layout that is automatically generated based on the data for the report. You can use auto designs for most common reports. Re-usability is available.

This uses Report template and Section template. Header ,Section Group and Footer is not available.

Generate Design or Precision design: You can create a precision design for a report that requires a very precise layout. It doesn’t use Section template and Report template. Re-usability is not available.

Q.3) Difference between following

Ans) condel   :- Use condel to delete one or more items from a container.

confind :- Use confind to locate a sequence of items in a container.

conins   :- Use conins to insert some items into a container.

conlen   :- Use conlen to find out how many items there are in a container.

connull  :- Use connull to explicitly dispose of the contents of a container.

conpeek :- Use conpeek to extract an item from a container, and to convert it into another data type

conpoke :- Use conpoke to replace (poke) an item in a container.

Q.4) Difference between edit and display method

Ans)Display Indicates that the method's return value is to be displayed on a form or a report.

The value cannot be altered in the form or report

Edit Indicates that the method's return type is to be used to provide information for a field that is used     in  in a form. The value in the field can be edited.

Q.5) Difference between perspectives and table collection

Ans) Perspectives can organize information for a report model in the Application Object Tree (AOT).

A perspective is a collection of tables. You use a report model to create reports.

Table collection is a collection of table, which sharing across all the virtual companies.

Q.6) What are the 4 types of files we need to copy to the standard folder?

Ans) *.aod    - application object data file

*.ahd    -  Application Online Help Data file

*.ald     -  Application Label data file.

*.add    - Application Developer Documentation Data file

*.khd    -  Kernel Online Help Data

And other files are

*.ahi      -   Application Online Help Index files

*.adi      -   Application Developer Documentation Index files

*.ali       -   Application Label Index files

*.alt       -   Application Label Temporary file.

*.alc       -    Application Label Cache file

*. aoi     -    Application Object Index file

*.khd     -    Kernel Online Help Data

*.khi      -   Kernel Online Help Index files

Q.7)Why we use virtual companies?

Ans) Virtual company accounts contain data in certain tables that are shared by any number of company accounts. This allows users to post information in one company that will be available to another company.

Q.8) How can we restrict a class to be further extended?

Ans) Using Final Keyword for ex: public final class <ClassName

Q.9)Which classes are used for data import export?

Ans) SysDataImport and SysDataExport

Q.10) From which table u can get the user permissions stored in Ax?

Ans) AccessRightList table.

Q.11) What should we do if we need last record to be active when a form is opened?

Ans) In properties of datasource table set the StartPosition property as last.

Q.12) What is the sequence of events while a report is generated?

Ans) Init, Run, Prompt, Fetch, send,Print

Q.13) Name few X++ classes/Coreclasses related to Queries?

Ans) Query, QueryRun, QueryBuildRange, QueryBuildDataSource, QueryBuildLink

Q.14) What is an index?

Ans)An index is a table-specific database structure that speeds the retrieval of rows from the table. Indexes are used to improve the performance of data retrieval and sometimes to ensure the existence of unique records.

Q.15) Define IntelliMorph?

Ans) IntelliMorph is the technology that controls the user interface in Microsoft Dynamics AX. The user interface is how the functionality of the application is presented or displayed to the user.

IntelliMorph controls the layout of the user interface and makes it easier to modify forms, reports, and menus.

Q.16) Define MorphX ?

Ans) The MorphX Development Suite is the integrated development environment (IDE) in Microsoft Dynamics AX used to develop and customize both the Windows interface and the Web interface.

Q.17) Define  X++ ?

Ans) X++ is the object-oriented programming language that is used in the MorphX environment .

Differentiate refresh(),reread(),research(),executequery()

refresh() will not reread the record from the database.  It basically just refreshes the screen with whatever is stored in the form cache. reread() will only re-read the CURRENT record from the DB so you should not use it to refresh the form data if you have added/removed records.  It's often used if you change some values in the current record in some code, and commit them to the database using .update() on the table, instead of through the form datasource.  In this case .reread() will make those changes appear on the form. research() will rerun the existing form query against the data source, therefore updating the list with new/removed records as well as updating existing ones.  This will honour any existing filters and sorting on the form. executeQuery() is another useful one.  It should be used if you have modified the query in your code and need to refresh the form.  It's like research() except it takes query changes into account.

Q.18) Define AOT?

Ans)The Application Object Tree (AOT) is a tree view of all the application objects within Microsoft Dynamics AX. The AOT contains everything you need to customize the look and functionality of a Microsoft Dynamics AX application

Q.19) Define AOS ?

Ans)The Microsoft Dynamics AX Object Server (AOS) is the second-tier application server in the Microsoft Dynamics AX three-tier architecture.

The 3-tier environment is divided as follows:

First Tier – Intelligent Client • Second Tier – AOS • Third Tier – Database Server

In a 3-tier solution the database runs on a server as the third tier; the AOS handles the business logic in the second tier. The thin client is the first tier and handles the user interface and necessary program logic.

Q.20) Difference between temp table and container?

Ans) Data in containers are stored and retrieved sequentially, but a temporary table enables you to define indexes to speed up data retrieval.

Containers provide slower data access if you are working with many records. However, if you are working with only a few records, use a container.

Another important difference between temporary tables and containers is how they are used in method calls. When you pass a temporary table into a method call, it is passed by reference. Containers are passed by value. When a variable is passed by reference, only a pointer to the object is passed into the method. When a variable is passed by value, a new copy of the variable is passed into the method. If the computer has a limited amount of memory, it might start swapping memory to disk, slowing down application execution. When you pass a variable into a method, a temporary table may provide better performance than a container

Q.21) What is an EDT, Base Enum, how can we use array elements of an EDT?

Ans) EDT - To reuse its properties. The properties of many fields can change at one time by changing the properties on the EDT. Relations can be assigned to an edt are known as Dynamic relations.

EDT relations are Normal and Related field fixed.

Why not field fixed – field fixed works on only between two tables 1- 1 relation. And Related field fixed works on 1- many edt uses related field fixed.

BaseEnum - which is a list of literals. Enum values are represented internally as integers. you can declare up to 251 (0 to 250) literals in a single enum type. To reference an enum in X++, use the name of the enum, followed by the name of the literal, separated by two colons . ex - NoYes::No.

Q.22) Definition and use of Maps, how AddressMap (with methods) is used in standard AX?

Ans) Maps define X++ elements that wrap table objects at run time. With a map, you associate a map field with a field in one or more tables. This enables you to use the same field name to access fields with different names in different tables. Map methods enable to you to create or modify methods that act on the map fields.

Address map that contains an Address field. The Address map field is used to access both the Address field in the CustTable table and the ToAddress field in the CustVendTransportPointLine table

Q.23)What is the difference between Index and Index hint?

Ans) Adding the "index" statement to an Axapta select, it does NOT mean that this index will be used by the database. What it DOES mean is that Axapta will send an "order by" to the database. Adding the "index hint" statement to an Axapta select, it DOES mean that this index will be used by the database (and no other one).

Q.24) How many types of data validation methods are written on table level?

Ans) validateField(),validateWrite(),validateDelete(),aosvalidateDelete(),aosvalidateInsert(),


<pre style="text-align: center;"><em><strong>Get Online Microsoft Dynamics AX Training from experts to get started with practical knowledge</strong></em></pre>

Q.25) How many types of relations are available in Axapta, Explain each of them?

Ans) Normal Relation: enforce referential integrity such as foreign keys. For displaying lookup on the child table.

Field fixed: works as a trigger to verify that a relation is active, if an enum field in the table has a specific value then the relation is active. It works on conditional relations and works on enum type of data.

Ex- Dimension table

Related field fixed: works as a filter on the related only shows records that match the specified value for an enum field on the related table.

Q.26) When the recid is generated, what is its utility?

Ans) when the record is entered in the table the recid is generated by the is unique for each table.

Q.27) Difference between Primary & Cluster index?

Ans) Primary index: It works on unique indexes. The data should be unique and not null. Retrieve data from the database.

Clustered Index: It works on unique and non unique indexes.retrieve data from the AOS.

The advantages of having a cluster index are as follows:

Search results are quicker when records are retrieved by the cluster index, especially if records are retrieved sequentially along the index.

Other indexes that use fields that are a part of the cluster index might use less data space.

Fewer files in the database; data is clustered in the same file as the clustering index. This reduces the space used on the disk and in the cache.

The disadvantages of having a cluster index are as follows:

It takes longer to update records (but only when the fields in the clustering index are changed).

More data space might be used for other indexes that use fields that are not part of the cluster index if the clustering index is wider than approximately 20 characters).

Q.28) How many kind of lookups can be made and how?

Ans) By using table relations

Using EDT relations.

Using morphx  and using X++ code(Syslookup class).

Q.29) How many types of Delete Actions are there in Standard Ax and define the use of each?

Ans) None




Q.30) What is the function of super()

Ans) This method calls the system methods to execute.

It is used to instantiating the variables at the parent class. Used for code redundancy.

Q.31) Utility and use of find method.

Ans) All the tables should have at least one find method that selects and returns one record from the table that matches the unique index specified by the input parameters. The last input parameter in a find method should be a Boolean variable called for update or update that is defaulted to false. When it is set to true, the caller object can update the record that is returned by the find method.

Q.32) What  are the different types of Table groups defined on table properties?

Ans) Miscellaneous







Q.33) Multiple inheritance possible or not, if not how can we overcome that?

Ans) In X++, a new class can only extend one other class; multiple inheritance is not supported. If you extend a class, it inherits all the methods and variables in the parent class (the superclass).

We can use Interfaces instead of multiple inheritance in Ax.

Q.34) Do we need to write main method, give reasons?

Ans) Yes, but to open the class from action menu item we have to create main method of class.

Q.35) What is difference between new & construct method?

Ans) new(): used to create a memory to the object.

Construct():  You should create a static construct method for each class. The method should return an instance of the class.

Q.36) What is the utility of the RunOn property

Ans) Application objects such as reports, tables, and methods can run on the application object server (AOS) or the client. An object can also have the RunOn property value set to Called from. Objects set to Called from can run from either the client or server, depending on where the object is called from. This topic describes the RunOn property, tiers that class objects can run on, and hints about using AOSRunMode.

Default value of RunOn for Classes -  Called from

MenuItems -   Client

Q.37) What is main class used in batch process OR which class will you inherit to make a batch job?

Ans) RunBaseBatch  class


About Author


Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills .