Hi there,
We have Dynamics GP 10 here (probably to upgrade next year) and we use eConnect to generate invoices on a nightly basis. I have been asked to copy across serial numbers as well but have struggled to find good information on how to do this. I think I need to use the taIVTransactionSerialInsert class but I don't know what all the fields in there are for (for example is IVDOCNBR the same as SOPNUMBE in SOP10100?). Below is the bit of c# code to convert a SOPTransactionType object (containing the sales header and lines) to xml which is then passed through to a method called eConnect_EntryPoint. I assume I do a similar thing for taIVTransactionSerialInsert. Does anyone have some more detailed info or examples for this? Thanks!
eConnect = new eConnectType();
SOPTransactionType[] MySopTransactionType = { salesOrder };
eConnect.SOPTransactionType = MySopTransactionType;
serializer = new XmlSerializer(eConnect.GetType());
_memStream = new MemoryStream();
_Writer = new StreamWriter(_memStream);
serializer.Serialize(_Writer, eConnect);
_Writer.Close();
byte[] dato = _memStream.ToArray();
String _stringDoc = Encoding.ASCII.GetString(dato);
Cheers
*This post is locked for comments