AX 2012 – RecordInsertList (basic sample)

Sample code…. Bad Practice: RandomTable randomTableBuffer; // Imagine this loop returns 10000 records. while select randomTableBuffer where randomTableBuffer.RandomField1 == “1” { randomTableBuffer.RandomField2 == “2”; randomTableBuffer.insert(); } This would insert a record in the database 10000 times. Of course this would work just perfectly fine but would give you horrible performance. To avoid performance issues you […]

Dynamics AX 2012 R3 – Keeping track of errors

While debugging or any other development process you come across errors. Sometimes you click away the errors to fast or your client can crash. For these scenarios I created a error log. I only use this in my dev environment. Add the following piece of code in the “Info” class, “Add” function. Below is a […]