Add field to AIF document service

I am working on SalesSalesInvoice.read services and want to create a new field say Barcode and show the value on the outbound XML file.

I have created Barcode field in the CustInvoiceTrans Table and have compiled and Barcode is showing on my data policies.

But I was wondering if you can help me which class should I use to insert the value of the Barcode so that when I generate an XML file Barcode has the value which I declare.

It will be of great help if you can name the class and method for me on which I can work.

Thanks.

I don’t understand your requirement. What class are you looking for? What do you want to do there? I thought you want to simply take the value from CustoInvoiceTrans.Barcode?

Also, please attach tags related to your question, especially your version of AX.