Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

eConnect Receivables Invoice - CreateTransactionEntity - More than one Transaction - VB.Net Code


eConnect Receivables Invoice - CreateTransactionEntity - More than one Transaction - VB.Net Code

eConnect Receivables Invoice - CreateTransactionEntity - More than one Transaction - VB.Net Code


In the samples provided in the eConnect Documentation, everywhere it's for single record i.e. for one single node for any transaction type. If I want to upload more than one transaction - multiple transactions - my code doesn't work. Always my only single record is getting inserted into Dynamics GP. I want to insert more than one, where am I missing?

In my below code at : eConnect.RMTransactionType(0) = MyType(0)

I want to send two records & similarly in a loop multiple records basically the taRMtransaction object should be made an array & passed to the RMTransactionType(0) object. How to be done? Pls. help.

Public Shared Sub SerializeReceivablesObject(ByVal filename As String)


Dim MyType(1) As RMTransactionType

Dim MyTransactions(1) As taRMTransaction

Dim LineItems(1) As taRMTransaction

'Populate the XML node object

LineItems(0) = New taRMTransaction

With LineItems(0)



.SLSAMNT = "100"

.DOCAMNT = "100"



.DOCDATE = DateTime.Parse("01/06/2012")

.DOCNUMBR = "INV17062012-001"




End With

MyTransactions(0) = LineItems(0)

LineItems(1) = New taRMTransaction

With LineItems(1)



.SLSAMNT = "200"

.DOCAMNT = "200"



.DOCDATE = DateTime.Parse("01/06/2012")

.DOCNUMBR = "INV17062012-002"




End With

MyTransactions(1) = LineItems(1)

Dim eConnect As New eConnectType

Dim MyeConnect(1) As eConnectType

Dim MyTransaction As New taRMTransaction

ReDim Preserve eConnect.RMTransactionType(0)

Dim MyTransArray As New List(Of taRMTransaction)()



MyType(0) = New RMTransactionType

MyType(1) = New RMTransactionType

MyType(0).taRMTransaction = MyTransArray.Item(0)

MyType(1).taRMTransaction = MyTransArray.Item(1)

eConnect.RMTransactionType(0) = MyType(0)

'Create a file and stream to use to serialize the XML document to a file

Dim fs As New FileStream(filename, FileMode.Create)

Dim writer As New XmlTextWriter(fs, New UTF8Encoding)

'Serialize the XML document to the file

Dim serializer As New XmlSerializer(GetType(eConnectType))

serializer.Serialize(writer, eConnect)


Catch ex As ApplicationException


End Try

End Sub

Red Flag This Post

Please let us know here why the post below is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close