Data contract serialization from X++

You can decorate classes in AX2012 with DataContractAttribute in much the same way as in .NET with System.Runtime.Serialization.DataContractAttribute. The same is true also for DataMemberAttribute. This is a simple data contract class in X++: [DataContractAttribute] class ItemContract { str name;   [DataMemberAttribute("Name")] public str parmName(str _name = name) { name = _name; return name; } …

Continue reading ‘Data contract serialization from X++’ »

Windows Azure Virtual Network with Active Directory

First of all, why would you want to create virtual machines in Windows Azure? There may be many reasons; let’s mention just a few of them: You don’t need any new hardware or adding more pressure on existing hardware. Creating virtual machines is very easy – you can do it in just a few clicks. …

Continue reading ‘Windows Azure Virtual Network with Active Directory’ »

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’ »

Powershell management cmdlets

I love Powershell and I use it for many tasks such as managing AOS services and deploying AX applications. Nevertheless I rarely do much work regarding Windows servers, because there is always somebody who does that as a part of his own job. But now I’m preparing few private machines for my research and development …

Continue reading ‘Powershell management cmdlets’ »

A user session cannot be created

I installed AX2012 R2 CU7 with the demo data downloaded from Microsoft Dynamics AX 2012 Solution Demos on PartnerSource. When I attempted to start the AX client, it threw the following error: A user session on the server could not be created. Try to start the client again. If the problem continues, contact the Microsoft …

Continue reading ‘A user session cannot be created’ »