Salesforce

How to programmatically de-activate and activate Audit Policies?

« Go Back

Information

 
TitleHow to programmatically de-activate and activate Audit Policies?
URL NameP143113
Article Number000135079
EnvironmentProduct: OpenEdge
Version: 10.1x, 10.2x, 11.x
OS: All supported platforms
Other: Auditing
Question/Problem Description
How to programmatically activate or deactivate audit policies?
How to set audit policies active or inactive with ABL?
Is there an alternate to the Audit Policy Maintenance Tool (APMT) for activating audit policies?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
To activate or deactivate audit policies with ABL:
  1. Find the record in the _aud-audit-policy table where the _Audit-policy-name field contains the name of the policy to be activated or deactivated.
  2. Set the _Audit-policy-active field to TRUE to activate the policy, or FALSE to deactivate it.
  3. Call AUDIT-POLICY:REFRESH-AUDIT-POLICY( <db-name> ) to refresh the audit policy settings cache.
 
FOR EACH _aud-audit-policy WHERE _Audit-policy-name BEGINS "PSC":
    ASSIGN _Audit-policy-active = FALSE.
END.

AUDIT-POLICY:REFRESH-AUDIT-POLICY("sports2000").

 
Workaround
Notes
Keyword Phrase
Last Modified Date11/20/2020 7:33 AM

Powered by