AuditPolicyExecution::getActiveRuleForPolicy Method [AX 2012]

Gets the active rule for the specified policy, policy rule type, and the effective date.

client server public static RefRecId getActiveRuleForPolicy(
    RefRecId _policyRecId, 
    RefRecId _ruleTypeRecId, 
    utcdatetime _effectiveDate)

Run On

Called

Parameters

_policyRecId
Type: RefRecId Extended Data Type
The record ID of the SysPolicy record that is currently being executed.
_ruleTypeRecId
Type: RefRecId Extended Data Type
The record ID of the SysPolicyRuleType record that is being applied on the policy specified.
_effectiveDate
Type: utcdatetime
The date range for which the rule was active.

Return Value

Type: RefRecId Extended Data Type
The rule record ID.
Show: