web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Inserting Sales Order Serial Numbers with eConnect

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    on at

    Yes I think you need to use “taIVTransactionSerialInsert” econnect node to insert serial info.

    Yes IVDOCNBR in “taIVTransactionSerialInsert” node is same as SOPNUMBE.

    Do let us know which other fields mapping details you would like to know.  

  • Community Member Profile Picture
    on at

    Thanks Hansi, I am making progress.  I found that I need to also create a taIVTransactionHeaderInsert object.  Both have a field called IVDOCTYP which in the msdn site says 1 for adjustment and 2 for variance.  I assume this should be 1?  Also is it the same value (i.e. 1) in the taIVTransactionHeaderInsert object?  Thanks!

  • Community Member Profile Picture
    on at

    Both IVDOCTYP element should have same value.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
talty09 Profile Picture

talty09 2

#1
Anthony Beatty Profile Picture

Anthony Beatty 2

#3
CP04-islander Profile Picture

CP04-islander 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans