다음을 통해 공유


About audit policy rules

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

You can use audit policies to evaluate expense reports, vendor invoices, and purchase orders to make sure that they comply with policy rules that you create. All of the rules that are associated with an audit policy are run in batch mode, according to a schedule that you specify.

Each policy rule is an instance of a policy rule type. For each policy rule type, only one policy rule can be active at a time.

Note

This topic includes information about features that were added or changed for cumulative update 6 or later for Microsoft Dynamics AX 2012 R2. This information also applies to AX 2012 R3.

Queries and query types

When you create an audit policy rule, you first select a policy rule type. The policy rule type specifies the Application Object Tree (AOT) query to use as the starting point for creating the policy rule. It also specifies the query type to use for the policy rule.

The query determines the source document that the policy rule evaluates. It also specifies the fields in the source document that identify both the legal entity and the date to use when documents are selected for audit.

The query type controls the default fields in the query form and in the Audit policy rule form.

The following table shows the query types that are available for audit policy rules.

Query type

Purpose

More information

Conditional

Evaluate source document attributes against specified values.

Aggregate

Evaluate multiple source documents or source document lines against a policy rule by aggregating numeric values.

Sampling

Randomly select a specified percentage of the source documents to evaluate for policy violations.

When you select this option, use the Audit policy rule form to specify the percentage of documents to randomly select for audit.

Duplicate

Evaluate source documents to determine whether they contain duplicate entries in specified fields.

When you select this option, use the Audit policy rule form to specify the number of days to add to the start of the document selection date range when documents are evaluated for duplicate entries.

List search

Evaluate source documents for specific entities.

The root document of the query defines the document that is being audited. The query must contain a join with the DirParty table.

This option can be used only with the following AOT queries:

  • AuditPolicyExpenseList (Expense report monitored employees)

  • AuditPolicyPurchList (Purchase order monitored vendors)

  • AuditPolicyVendInvoiceList (Vendor invoice monitored vendors)

In Microsoft Dynamics AX 2012 or Microsoft Dynamics AX 2012 R2:

When you select this option, specify the monitored entities in the Additional options form before you create the policy rule.

In AX 2012 R3 and cumulative update 6 or later for AX 2012 R2:

When you select this option, specify the monitored entities in the Audit policy rule form.

Keyword search

Evaluate source documents to determine whether they contain certain words.

In Microsoft Dynamics AX 2012 or Microsoft Dynamics AX 2012 R2:

When you select this option, enter the words to look for in the Additional options form before you create the policy rule. The Audit policy rule form also includes options that let you specify the tables and fields to evaluate for the words you entered.

In AX 2012 R3 and cumulative update 6 or later for AX 2012 R2:

When you select this option, enter the words to look for in the Audit policy rule form. The Audit policy rule form also includes options that let you specify the tables and fields to evaluate for the words you entered.

For more information about queries for audit policy rules, see Policy rule type (form).

Common parameters

All of the policy rules for a particular audit policy share the same batch parameters and the same document selection date range. These parameters are specified for the policy in the Additional options form.

See also

Key tasks: Audit policies

About audit policy violations and cases

Audit policy rule (form)

Policy rule type (form)

Audit policy rule test result (form)

Additional options (form)

Case grouping criteria (form)