Category: Dynamics AX 2012

AX2012 Open Folder XPP 0

AX 2012: Open a Folder with X++

In this post I want to show you a quick and dirty way to open a folder via X++ in AX 2012. Open a Folder in AX 2012 I added the following code at a Button in the clicked method like this. All it takes to open a folder via X++, is the DocumentManagementHelper class and its static method...

AX2012 Threading Slow Method 0

Simple Threading in AX 2012

In this post I want to show, how easily you can utilize the Thread class in AX 2012. Simple Thread example First we want to setup a new class. Next we want to add two static methods, one “slow” method which will use a sleep to simulate a lengthy runtime and one “fast” method. The idea here is that...

Get the client name of your (rdp) maschine 0

Get the Client Name of your (Remote) Machine in AX2012

In this short post I want to highlight how you can get the name of the client which is connected to AX 2012, even if you run your session via a RDP connection. For this purpose I wrote a small Job, that outputs the client name in an Infolog. Code The first Info invokes the static global method...

Get User, Company and System Language in AX2012 0

Get User, Company and System Language via X++ in AX 2012

In this quick post I want to show you how to get the actual user language, the language of the current company and the system language in AX 2012 via X++. Languages in AX 2012 To get the actual company language you can call the static method languageId from the CompanyInfo table, which will return a LanguageId. (CompanyInfo::languageId –...

AX2012 AIF WCF Configuration 0

How to fix the MaxReceivedMessageSize error while using an AX2012 AIF service

The error message: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. What is the cause? When you setup your AIF Service in AX2012 (basically a WCF service), you can also define an property called MaxReceivedMessageSize for your binding. The problem is, the MaxReceivedMessageSize...

AX2012 WHS MDP Delet User Session 0

Delete WHS Mobile Device Portal User Session in AX2012

To test the “new” WHS Mobile Device Portal in AX 2012 R3, one can use the WHSWorkExecute form (a nifty WMDP emulator). But while creating a new form inside the WMDP, I managed it to get stuck in a blank form, with no way out. On top it seems like the actual session is saved in the WHSWorkUserSession table and even after logoff / logon...