Home

Number sequence farmework overview in Dynamics AX 2012

For this demo, I will create New module along with NumberSequence, about creating Number Sequence without module you also use same steps just leave some steps base on Design picture above. ETD Create ETD ContosoId extends num datatype. Table Create Contoso Table with ContosoId field. Enum Create a new enum value Contoso in BaseEnum NumberS...

Read more

Response in AIF custom service class

At the previous post I already show how to customize Response Value list in AIF Document standard service, today we will talk about response in Custom AIF service class. We already know for Custom AIF service we actually need 2 classes, one is contract for data input and one is service to process a logic. With Response class, it’s literally sam...

Read more

How to create HTTP adapter port

We normally use NETTCP adapter for .NET system, It going to very easy to consume by. As my experience, if we use NETTCP adapter for consuming by Java system, we will need add some extension or 3rd party due to binding and mismatch schema and of course client doesn’t want to do that either me. So, my solution is creating HTTP adapter for Java, ...

Read more

Handle AIF error messages in dynamics AX 2012 R3

Normally, when we consume AIF Service, we use this code like below to handle Error messages try { client.register(ctx, contract); Console.WriteLine("items registed on Trans Id: " + contract.InventTransId + " with " + contract.Qty + " quantities."); Console.ReadLine(); } catch (Exception ex) { Console.WriteLine(string.Format("Ex: {0}", ex.Me...

Read more

AIF Custom response value in Dynamics AX 2012 R3

For this demonstration, I use AIF service to create Sales order with SalesSalesOrderService and I gonna consume AIF using C#.NET. Normally, in consume service application we handle return value by using EntityKeyList, EntityKey, KeyData[0].Value. And for Sales Order It will return Created SalesID. Let’s take a look on AxdSalesOrder class. More...

Read more

Simple summary Keys are in Dynamics AX

There is a maximum of one Primary Key per table, whereas a table can have several alternate keys. The primary key is usually the type of key that other tables, called child tables, refer to when a foreign key field in those other tables need a relational identifier. For new tables the default is a primary key based on the RecId field ,...

Read more