Calling AIF Document Services Directly from X++ in Dynamics AX 2012
Published: March 18, 2021 at 6:20:14 PM UTC
In this article, I explain how to call Application Integration Framework document services in Dynamics AX 2012 directly from X++ code, emulating both inbound and outbound calls, which can make it significantly easier to find and debug errors in AIF code. Read more...
Dynamics AX
Posts about development in Dynamics AX (formerly known as Axapta) up to and including Dynamics AX 2012. Much of the information in this category is also valid for Dynamics 365 for Operations, but not all of it has been verified to be so.
Posts
Identifying Document Class and Query for AIF Service in Dynamics AX 2012
Published: March 16, 2021 at 6:20:57 PM UTC
This article explains how to use a simple X++ job to find the service class, entity class, document class and query for an Application Integration Framework (AIF) service in Dynamics AX 2012. Read more...
Delete a Legal Entity (Company Accounts) in Dynamics AX 2012
Published: February 26, 2021 at 5:15:12 PM UTC
In this article, I explain the correct procedure for completely deleting a data area / company accounts / legal entity in Dynamics AX 2012. Use at your own risk. Read more...
Convert a Real to String with All Decimals in Dynamics AX 2012
Published: February 3, 2021 at 5:46:02 PM UTC
In this article, I explain how to convert a floating point number to a string while preserving all decimals in Dynamics AX 2012, including an X++ code example. Read more...
Using a Query in a SysOperation Data Contract Class in Dynamics AX 2012
Published: October 29, 2020 at 5:06:05 PM UTC
This article goes over the details on how to add a user-configurable and filterable query to a SysOperation data contract class in Dynamics AX 2012 (and Dynamics 365 for Operations) Read more...
Error "No metadata class defined for data contract object" in Dynamics AX 2012
Published: October 8, 2020 at 4:33:20 PM UTC
A short little article describing a somewhat cryptic error message in Dynamics AX 2012, as well as the most likely cause and fix for it. Read more...
String Formatting with Macro and strFmt in Dynamics AX 2012
Published: October 7, 2020 at 5:38:45 PM UTC
This article describes some peculiar behavior in Dynamics AX 2012 when using a macro as format string in the strFmt, as well as examples on how to work around it. Read more...
Using the SysExtension Framework to Find Out Which Subclass to Instantiate in Dynamics AX 2012
Published: October 7, 2020 at 5:29:45 PM UTC
This article describes how to use the little-known SysExtension framework in Dynamics AX 2012 and Dynamics 365 for Operations to instantiate sub classes based on attribute decorations, allowing for an easily extensible design of a processing class hierarchy. Read more...
How to Iterate Over the Elements of an Enum from X++ Code in Dynamics AX 2012
Published: October 2, 2020 at 3:45:49 PM UTC
This article explains how to enumerate and loop over the elements of a base enum in Dynamics AX 2012, including an X++ code example. Read more...
The Difference Between data() and buf2Buf() in Dynamics AX 2012
Published: September 10, 2020 at 4:31:35 PM UTC
This article explains the differences between the buf2Buf() and data() methods in Dynamics AX 2012, including when it is appropriate to use each and an X++ code example. Read more...
Dynamics AX 2012 SysOperation Framework Quick Overview
Published: March 24, 2015 at 3:43:32 PM UTC
This article provides a quick overview (or cheat sheet) on how to implement processing classes and batch jobs in the SysOperation framework in Dynamics AX 2012 and Dynamics 365 for Operations. Read more...






