How to delete Quickbook Invoice using SDK

Viewed 19

We are using Interop.QBFC14 SDK to delete invoice.

IMsgSetRequest requestMsgSet = sessionHelper.GetMsgSetRequest();
                
ITxnDel txnDelRq = requestMsgSet.AppendTxnDelRq();

txnDelRq.TxnDelType.SetValue(ENTxnDelType.tdtInvoice);

txnDelRq.TxnID.SetValue("<<InvoiceNo>>");

But the response from SDK is

Object "[[InvoiceNo]]" specified in the request cannot be found.

1 Answers
IMsgSetRequest requestMsgSet = sessionHelper.GetMsgSetRequest();
            
ITxnDel txnDelRq = requestMsgSet.AppendTxnDelRq();

txnDelRq.TxnDelType.SetValue(ENTxnDelType.tdtInvoice);

txnDelRq.TxnID.SetValue(TxnID);

Pass TxnID
Related