AuditPolicyExecutionTask::getSourceDocumentFieldAndFlag Method [AX 2012]
Determines the type of the specified document based on whether it is related to the SourceDocumentHeader or SourceDocumentLine table.
server public static container getSourceDocumentFieldAndFlag(TableId _tableId)
Run On
ServerParameters
- _tableId
- Type: TableId Extended Data Type
The ID of the document for which to determine the type.
Return Value
Type: containerA container with the field that is related to either the SourceDocumentHeader or SourceDocumentLine table and a true if the field is related to the SourceDocumentLine table; otherwise, false.
This method returns the name of the field that is related to either the SourceDocumentHeader or SourceDocumentLine table.
Although the foreignKeyFieldList of the SysTableFieldLookup class may return more than one field that is related to SourceDocument* tables, only the fields are related to either the SourceDocumentHeader or SourceDocumentLine table are considered.
Because more than one field related to SourceDocument* tables would create ambiguity as to which field to use to create an audit violation, such a document is ignored.
Show: