qbxml - QB not returning TxnLineID on ReceivePaymentToDepositQuery -


I am trying to automate the deposit for a customer whose 1,000 unpaid payments are credited to the deposit TxnID and TxnLineID are required to pay, however, when I command payment for payment, then it is empty for TxnLineID. All other fields look fine, so I should do something right. Nothing strange about my query:

  IReiveivePaymentToDepositQuery query = reqSet.AppendReceivePaymentToDepositQueryRq ();  

Then when I separate the results:

  if (ptdRet.TxnLineID! = Null) pmt.TxnLineID = ptdret.TxnLineID. GetValue ();  

TxnLineID is always empty then, all other fields look okay What am I doing wrong? I have studied the programmer's guide (section about payment and deposits) and the OSR but do not understand it. I have also tried to set IncludeRetElementList explicitly. I would really love to hear from someone working on it. .

I am using QBFC 12 and Premier 2014 (but I have also tested with enterprise v12 and many different company files)

You do not need to include TxnLineID, only TxnID here is my request:

  Add idpause dep = MsgRequest.AppendDepositAddRq (); Dep.TxnDate.SetValue (DateTime.Today); Dep.DepositToAccountRef.FullName.SetValue ("Checking"); IDepositLineAdd line = dep.DepositLineAddList.Append (); Line.ordepositLineAdd.PaymentLine.PaymentTxnID.SetValue ("TxnIDGoesHere");  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -