PurchFormletterParmDataInvoice.getSourceDocumentHeaderRecId Method [AX 2012]
Returns the source document header record ID corresponding to the supplied vendor invoice.
Syntax
protected SourceDocumentHeaderRecId getSourceDocumentHeaderRecId(TradeLineRefId _tableRefId)
Run On
Server
Parameters
- _tableRefId
Type: TradeLineRefId Extended Data Type
The unique ID of a vendor invoice.
Return Value
Type: SourceDocumentHeaderRecId Extended Data Type
The unique ID of a source document header
Remarks
A cached source document header will be used if available. Otherwise a new one will be created.