Permissions for Configuration Manager

When trying the new Configuration Manager for AX 2012, I got an error when exporting a stored configuration. The message in LCS said only that an unknown error occurred, which obviously wasn’t very helpful. Fortunately I checked the event log on my server with AX and immediately found the problem. There was a log entry …

Continue reading ‘Permissions for Configuration Manager’ »

Delete order line through AIF

The following code sample shows how to delete a line of an existing sales order through AIF from outside Dynamics AX 2012 . It uses a partial update, which means that we don’t have to send the whole document back to AX. As the documentation says, we have to include just the fields to change …

Continue reading ‘Delete order line through AIF’ »

Creating sales orders via AIF in AX2012

I was asked for an example how to create a sales order through AIF document services (SalesSalesOrderService). Here is my minimalist variant in C# (for AX2012 and demo data): var line = new AxdEntity_SalesLine() { ItemId = "D0001", SalesQty = 42, SalesUnit = "ea" };   var order = new AxdEntity_SalesTable() { CustAccount = "US-003", …

Continue reading ‘Creating sales orders via AIF in AX2012’ »