eConnect for multiple transactions

  • eConnect for multiple transactions

    Posted by DSC Communities on April 2, 2020 at 12:15 pm
    • Karen Porter

      Member

      April 2, 2020 at 12:15 PM

      I have been digging into trying to learn eConnect and creating my own .NET application to use for integrating sales invoice transactions to GP2015. I have been using the sample console application as a starting point. It’s a great start and I have been successful in pushing a single sales invoice transaction. However, I am wondering if I could get any guidance in how the XML structure would look for more than 1 transaction. I have searched and searched and not found one for multiple transactions. Ideally I will use a SQL select statement to pull the data and then I would like to loop through that data and build the XML document.

      I know the very basic structure for one invoice transaction with multiple line items would be as shown below. For me to send multiple transactions in a single XML document, would it just be the idea of adding another <SOPTransactionType> node (as shown in bold below) with the line item and header info?

      <eConnect>

      Ā  Ā  <SOPTransactionType>
      Ā  Ā  Ā  Ā  <taSopLineIvcInsert_Items>
      Ā  Ā  Ā  Ā  Ā  Ā  <taSopLineIvcInsert>
      Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  … line item 1
      Ā  Ā  Ā  Ā  Ā  Ā  </taSopLineIvcInsert>
      Ā  Ā  Ā  Ā  Ā  Ā  <taSopLineIvcInsert>
      Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  … line item 2
      Ā  Ā  Ā  Ā  Ā  Ā  </taSopLineIvcInsert>
      Ā  Ā  Ā  Ā  </taSopLineIvcInsert_Items>
      Ā  Ā  Ā  Ā  <taSopHdrIvcInsert>
      Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  … invoice header
      Ā  Ā  Ā  Ā  </taSopHdrIvcInsert>
      Ā  Ā  </SOPTransactionType>
      Ā  Ā  <SOPTransactionType>Ā  –would I add another node here for another transaction??
      Ā  Ā  </SOPTransactionType>
      </eConnect>

      ——————————
      Karen Porter
      American Innovations
      Austin TX
      ——————————

    • Blair Christensen

      Member

      April 3, 2020 at 9:59 AM

      Looks right to me.Ā  Are you using a test box to do your development against?

      ——————————
      Blair Christensen
      Database Administrator
      Oppenheimer Companies, Inc.
      Boise Idaho GPUG Chapter Leader
      ——————————
      ——————————————-

    • Lucas Miller

      Member

      April 6, 2020 at 3:20 PM

      Hello Karen,

      Each call to the <eConnect> node should only contain the information for a single transaction.Ā  This has to do with the use of SQL transactions for the associated call to the Dynamics GP database(s).Ā  If there is some logic error returned by eConnect it will roll-back the transaction, but if you have multiple transactions in the same XML then it could potentially roll back the ones that were successfully integrated.

      I’ve also heard of some performance implications around having long-running SQL sessions which can be mitigated by limiting to one transaction per XML that is submitted to the eConnect Integration service.

      Let us know if you have further questions on this!

      ——————————
      Lucas Miller
      Support Escalation Engineer
      Microsoft
      Fargo, ND
      ——————————
      ——————————————-

    DSC Communities replied 5 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘eConnect for multiple transactions’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!