QuickBooks Integrator 2020 C++ Edition

Questions / Feedback?

LinkToTxnId Property

The LinkToTxnId property allows you to link to an entire transaction, pulling in all of its line items.

Syntax

ANSI (Cross Platform)
char* GetLinkToTxnId();
int SetLinkToTxnId(const char* lpszLinkToTxnId); Unicode (Windows) LPWSTR GetLinkToTxnId();
INT SetLinkToTxnId(LPCWSTR lpszLinkToTxnId);
@property (nonatomic,readwrite,assign,getter=linkToTxnId,setter=setLinkToTxnId:) NSString* linkToTxnId;
- (NSString*)linkToTxnId;
- (void)setLinkToTxnId:(NSString*)newLinkToTxnId;
#define PID_BILL_LINKTOTXNID 48

INQB_EXTERNAL void* INQB_CALL InQB_Bill_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
INQB_EXTERNAL int INQB_CALL InQB_Bill_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

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

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 C++ Edition - Version 20.0 [Build 7941]