AX / D365FO – FIlter an AOT Query by multiple Enum types fields

Are you creating an AOT Query and want to create a filter condition by multiple ENUM types field? In the AOT query you can do it by using a data source Range object and separate value by comma In the value field property just insert the numeric or string value of the the ENUM fields. In this example I … Continue reading AX / D365FO – FIlter an AOT Query by multiple Enum types fields

AX / D365FO – Change the banner or logo for a TEST Environment

Go to Navigation pane > Modules > Organization administration > Organizations > Legal entities. In the list on the left, select the legal entity for which you want to update the banner or logo. If it is already selected, go to the next step. Expand Dashboard image tab. In the Dashboard company image type select Logo or … Continue reading AX / D365FO – Change the banner or logo for a TEST Environment

AX / D365FO – Generate an exception with an error message in X++

To generate an exception in X++ code and give a feedback to the user with an error message just use throw Error('Your error message') Here is an example boolean isOk = false; if (!isOK) { throw Error('Operation canceled'); } The code will stop after the exception and a red message will be shown to the … Continue reading AX / D365FO – Generate an exception with an error message in X++

AX / D365FO – Create a simple Note on a Table in X++

This example shows how to create a simple note on a Table (ie. SaleTable) The code will insert a new note in the salesTable Form (like shown below) Example code class CreateNote { public static void main(Args _args) { DocuRef docuRef; DocuActionArchive docuArchive; changeCompany('your company') { SalesTable salesTable = SalesTable::find("your order No."); ttsbegin; // Code … Continue reading AX / D365FO – Create a simple Note on a Table in X++

AX / D365FO – Using Aggregate functions (Count, Max, Avg…) in a View

Suppose that you want to create a form that show a list of customers with the total count of their sales orders The result should be something like that.. But how to do that? You just need to follow these steps : Create an AOT QueryCreate an AOT View linked to the previous queryAdd a … Continue reading AX / D365FO – Using Aggregate functions (Count, Max, Avg…) in a View

AX / D365FO – List of all Symbols fonts (Image icons for tiles and buttons)

This document contains a list of the available symbols within Dynamics AX, as well as information and guidelines around the usage of symbols in various locations in the product. The symbol font is used by setting the ImageLocation property to "Symbol" and the Normal Image property to a symbol name listed below. Guidelines for symbol … Continue reading AX / D365FO – List of all Symbols fonts (Image icons for tiles and buttons)

AX / D365FO – Create a Tile in a D365FO Workspace with X++

There are two ways through which we can create tile one by personalizing form and another through code. In this example we'll use code The diagram below summarizes the operations we will perform to add a tile to a workspace These are the steps we'll do : Create an AOT Query objectCreate a simple list … Continue reading AX / D365FO – Create a Tile in a D365FO Workspace with X++

AX / D365FO – Debug Production environment on D365FO On-Premise version

If you have an On-premise D365FO installation it is possible to debug production or test environments by using a development VM and remote debugging tool Just follow these steps : Use a D365 developer environment Use a development environment which is on the domain (and of course the network) with the AOS machine The dev … Continue reading AX / D365FO – Debug Production environment on D365FO On-Premise version