Category Archives: Axapta Development

Dynamics AX 2009: Write to eventlog entry

Our client requested to keep track of all Dynamics AX system errors during the User Acceptance Testing. I use the application event logs to store the information. The following code shows you how to write event log entry with X++: … Continue reading

Posted in Axapta Development | Leave a comment

X++ code to remove identical copy

Our client asked for a job to remove the identical copy from VAR layer. For some unknown reason, some AOT objects are touched in VAR layer but actually are identical copy. When the developer compared the VAR layer object with the … Continue reading

Posted in Axapta Development | Leave a comment

New server-based batch framework in AX 2009

Microsoft Dynamics AX 2009 introduces a new batch framework that supports server-based batches without the need for a client. All new batch jobs in Microsoft Dynamics AX 2009 use the new batch framework. Most existing batch jobs from previous releases … Continue reading

Posted in Axapta Development | 1 Comment

Add a Dynamics AX user to be a memebr of Sharepoint site group

In AX 4.0, it is allowed to link an AX user to a particular Sharepoint site group from main menu -> Administration -> Users -> User relations button -> Web sites tab. Unfortunately, this is removed from AX 2009. However, … Continue reading

Posted in Axapta Development | Leave a comment

Failed to create COM objects on AX 4 AOS

You may come across this issue when attempt to initialize a COM object on AX 4 AOS server side:   static server void ActivateCOMOnAOS() {     #define.Word(‘Word.Application’)     COM com;     InteropPermission permission = new InteropPermission(InteropKind::ComInterop);     ;       … Continue reading

Posted in Axapta Development | 1 Comment

Consuming a Web Service in Dynamics AX 4

This will tell you how to use Common Language Runtime Interoperability feature in Dynamics AX 4 to reference a web service.  There is a pretty good discussion about this on Microsoft MBS community by Dilip and Mike Frank. To continue, … Continue reading

Posted in Axapta Development | 1 Comment

RefRecID in Dynamics AX 4

Dynamics AX 4.0 will generate unique RecIds per table, whereas Axapta 3.0 generates unique RecIds per company account.    This may have a great impact on the use of EDT RefRecId in AX development. In Axapta 3.0, we can directly … Continue reading

Posted in Axapta Development | Leave a comment