LinkToTxnId Property
The LinkToTxnId property allows you to link to an entire transaction, pulling in all of its line items.
Syntax
char* GetLinkToTxnId();
int SetLinkToTxnId(char* lpszLinkToTxnId);
Default Value
""
Remarks
When used in the Invoice class, the transaction you are linking to via this field must be a Sales Order. Links to other transactions, such as to estimates, are not currently supported. The use of this property requires QBXMLVersion on the Invoice to be "6.0" or greater.
When used with the Bill or ItemReceipt classs, the transaction you are linking to via this field must be a Purchase Order. Links to other transactions are not currently supported. The use of this property requires QBXMLVersion on the Bill or ItemReceipt to be "4.0" or greater.
You will get a runtime error if the transaction specified by LinkToTxnId is already closed or fully received and the request does not contain any other lines. You will also get an error if you attempt to save an empty transaction.
Data Type
String