Tuesday, 13 August 2013


Deserializing the Binary Data into PosTransaction

I have came across people who have to make the use of the suspended transactions. So, here I am writing about the deserializing the suspended transactions.

There are certain steps which needs to be followed :

  1. Fetch the data from RETAILSUSPENDEDTRANSACTIONS Table. The TRANSDATA field is the field which contains the binary data.
  2. Use the below code to deserialize the data from binary format to object.
                 MemoryStream memStream;

                 BinaryWriter binaryWriter;
                 BinaryFormatter binaryFormatter;
                 Int32 bufferSize = 0;
                 byte[] outbyte;
                 long retVal;
                 long startIndex = 0;
                 PosTransaction transaction = null;

                bufferSize = Convert.ToInt32(reader.GetValue(0));
                outbyte = new byte[bufferSize];
                memStream = new MemoryStream();
                binaryWriter = new BinaryWriter(memStream);
                binaryFormatter = new BinaryFormatter();

                retVal = reader.GetBytes(1, startIndex, outbyte, 0, bufferSize);


                memStream.Position = 0;
                transaction = (PosTransaction)binaryFormatter.Deserialize(memStream);

This will fetch the data in the "transaction" object and then you can make the use of this object to show the data in your customized form.

For sale line items use can use "((RetailTransaction)transaction).SaleItems"

Similarly, there are lines for Tenders, Discounts etc. in transaction object. 

Wednesday, 20 February 2013

Documentation on Microsoft Dynamics AX Retail POS R2 2012

The documentation on Microsoft Dynamics AX for Retail POS 2012 R2 is now available on the below mentioned link :

This URL will helps you to do the customization in the Retail POS 2012 R2 according to your business needs. :)

So, in case of any help on the customization of Retail POS 2012 R2, contact me on nchawla25@gmail.com or Keep blogging :)

Tuesday, 5 February 2013


Adding SalesPerson to Selected Item in Microsoft Dynamics AX for Retail 2012 R2 POS

The purpose of this blog post is to show how to add the salesperson in Microsoft Dynamics AX for Retail POS 2012 R2.
According to TechNet Article : 

The above technet article states the Add salesperson and clear salesperson but nothing in detail has been provided. 
Lets see how can we use or add the salesperson the the transaction items:
Add item to the transaction then,


 Then Click on Add Sales Person button, to configure the Salesperson through Blank Operations, add the following code to your Blank Operations:

After you click on the add salesperson button, you will see the following screen :

After you select the salesperson and click on the OK button then it will be added to your sale Item as shown below:

Wednesday, 9 January 2013

Microsoft Dynamics AX for Retail : Retail Transaction Service

Retail Transaction Service, now known as Real Time Service is used by POS (Point of Sales) Terminal for the data communication with the Store Database.

The detail reference for the setting up all the configurations required for the Transaction Service is available on the click of the below link :


For setting up Retail Transaction Service:


Besides this the Transaction Service can also be customized:


Also, for the Transaction Service troubleshooting, see below:



Search results

Contact Form


Email *

Message *