SalesAgreementHeaderHistory.getAttachedDocuments Method [AX 2012]

Retrieves the search object for documents that are attached to the agreement.

public DocuRefSearch getAttachedDocuments(DocuTypeId _docuTypeId, DocuRestriction _restriction)

Run On



Type: DocuTypeId Extended Data Type
The type of the document.
Type: DocuRestriction Enumeration
A restriction of the document.

Return Value

Type: DocuRefSearch Class
A DocuRefSearch object.

DocuRef attachments are associated with the TableId value of the table instance. Therefore, they cannot be retrieved based on the base table's TableId value.