AuditPolicyExecutionTask.createRuleViolationForSourceDocument Method [AX 2012]

Creates the violation record in the SysPolicySourceDocumentRuleViolation and AuditPolicyRuleViolation table.

protected void createRuleViolationForSourceDocument(RefRecId _sourceDocumentRecId, Num _instanceID)

Run On

Server

Parameters

_sourceDocumentRecId
Type: RefRecId Extended Data Type
The id of the SourceDocumentHeader or SourceDocumentLine record that violated the audit rule.
_instanceID
Type: Num Extended Data Type
The violation sequence number.

The violation instance number is the same for aggregate and duplicate violation records.

Community Additions

ADD
Show: