Category Archives: AX 4.0
Objects not in Version Control (Pre 2012)
Due to the level of interest that I received on my last post, I’ve decided to go ahead and release this version of the “Objects not in Version Control” script. I’ve cleaned up the code and added some improvements that … Continue reading
Last Weekday of Month
This method will calculate the date of the last specified weekday in the month of the given date. static date lastWeekdayOfMonth(date _date, WeekDays _weekday){ int _endWeekDay, _diff; date _endDate = endmth(_date); ; _endWeekDay = dayofwk(_endDate); _diff = _endWeekDay – _weekday; … Continue reading
Calculating a File Hash
Some time ago a colleague presented me the task of computing a SHA256 hash for an output file. This hash would be stored in a table in a hexadecimal string format, along with the file info, to ensure that the … Continue reading
Exporting Project Definitions
I concocted the following bit of code to automate the task of exporting project definitions to XPO files. It is a simple bit of code that allows the user to dump the project definition files to a specified folder.
Parsing Date Strings
Dynamics AX provides functions for parsing date strings into a date object but they are limited at best. The following static method uses the .Net date parsing functionality to create a X++ date object from any valid date string without … Continue reading
Automatic Class Pack/Unpack
A common task associated with creating objects in Dynamics AX is giving them the ability to be packed into a container for storage as a SysLastValue entry. The common methodology used for this is to declare a version and a … Continue reading