Dynamics Ax


Dynamics Ax AIF Web Service reference credential problem

  At a customer’s site, I was creating some extra AIF wcf services so that some extra tables would be externally available. For creating the WCF service, I was using the service wizard in Ax 2009 which is described here : http://msdn.microsoft.com/en-us/library/aa609947.aspx The newly created service was deployed to the Internet Information Server but when the […]

Dynamics AX 6.0 – SQL AOD

Owkay, have a seat and hold on to whatever you can hold on to… As of the beginning of AX (Axapta) we have always been used to working with AOD files. But it seems that the days of the AOD fileformat are numbered ! There are a couple of reasons why the use of AOD […]

Dynamics Ax : Posting packing slip for a shipment X++

To post a packing slip in Dynamics Ax for a Shipment you can do the following : void postPackingSlipForShipment() {     SalesFormLetter salesFormLetter;     Set             shipmentsToPostSet = new Set(Types::String);     ;       shipmentsToPostSet.add(wmsShipmentCreated.shipmentId);       salesFormLetter = SalesFormLetter::construct(DocumentStatus::PackingSlip);     salesFormLetter.parmLibMkdShipmentId(this.parmLIBMKDShipmentSignOffLine().ShipmentId);     salesFormLetter.parmWmsShipmentIdSet(shipmentsToPostSet);     salesFormLetter.update(wmsShipmentCreated, systemDateGet(), SalesUpdate::PickingList, AccountOrder::Account); } Notice the parmWmsShipmentIdSet parameter. This is […]

Dynamics Ax Get and Remove text from the Infolog

Sometimes you want a process to log infolog data into a text field instead of sending it to the infolog. For example you are posting 6 custom made journalTables and if something goes wrong you want the infologdata to be stored in a Log field on the table and you want to continue with the […]

Generic SysTableLookup Method

It is often needed to write a custom lookup method and the SysTableLookup class can be useful to create lookups from code. However the following method uses the SysTableLookup in the background but can be called easier. When using the SysTableLookup class, for most of the simple lookups (1 datasource table) it is alway the […]

EventHandlers In Ax 2009

It is possible to attach event listeners to objects in X++. The next code sample shows the usage of the SysEventBroker and SysEventInfo classes to handle events : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 static void SysEventTest(Args _args) { SysEventBroker broker […]