AuditPolicyExecutionTask.modifyRuleQuery Method [AX 2012]

Modifies the selection list and range of the rule query.

protected void modifyRuleQuery()

Run On

Server

Adds the field referencing SourceDocumentHeader or SourceDocumentLine table to the select list of the specified query.

Also, adds the record ID of the document being audited to the range clause.

Because having more than one field related to SourceDocument* tables would create ambiguity as to which field to pick for creating an audit violation, such a document is ignored.

Community Additions

ADD
Show: