codeunitAdministration & Setupofficial - Microsoftderived - from the source, no model text

Codeunit 3910 "Apply Retention Policy"

System Application · System.DataAdministration

Across versions

  1. BC23-27present
  2. BC281 procedures added, 1 events added
  3. BC29-30unchanged

Neighbourhood 14 connected objects and pages

Codeunit 1598 "Email Logs Delete" (event subscribers)Email Logs DeleteCodeunit 1930 "Performance Profiler Delete" (event subscribers)Performance Profiler DeleteCodeunit 30274 "Shpfy Log Entries Delete" (event subscribers)Shpfy Log Entries DeleteCodeunit 3913 "Retention Policy Logs Delete" (event subscribers)Retention Policy Logs DeleteCodeunit 3921 "Retention Policy Logs Truncate" (event subscribers)Retention Policy Logs TruncateCodeunit 3993 "Base Application Logs Truncate" (event subscribers)Base Application Logs TruncateCodeunit 3995 "Base Application Logs Delete" (event subscribers)Base Application Logs DeleteCodeunit 3997 "Retention Policy JQ" (event subscribers)Retention Policy JQCodeunit 6450 "Serv. Integration Mgt." (event subscribers)Serv. Integration Mgt.Codeunit 3904 "Apply Retention Policy Impl." (calls, 10 links)Apply Retention Policy Impl.Codeunit 3915 "Reten. Pol. Filtering Impl." (calls, 3 links)Reten. Pol. Filtering Impl.Codeunit 3994 "Reten. Pol. Doc. Arch. Fltrng." (calls, 3 links)Reten. Pol. Doc. Arch. Fltrng.Codeunit 3911 "PBT Expired Record Count" (calls)PBT Expired Record CountCodeunit 3997 "Retention Policy JQ" (calls)Retention Policy JQ

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

System Application · System.DataAdministration · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Access Public

Events published

Procedures

  • ApplyRetentionPolicy(UserInvokedRun: Boolean): Applies all enabled, non-manual retention polices. This will delete records according to the settings defined in the Retention Policy Setup table.
  • ApplyRetentionPolicy(RetentionPolicySetup: Record "Retention Policy Setup"; UserInvokedRun: Boolean): Applies the given Retention Policy. This will delete records according to the settings defined in the Retention Policy Setup table.
  • GetExpiredRecordCount(RetentionPolicySetup: Record "Retention Policy Setup"): Integer: Returns the number of expired records for the given Retention Policy Setup record. These records would be deleted if the Retention Policy was applied.
  • GetExpiredRecordCount(RetentionPolicySetup: Record "Retention Policy Setup"; var ExpiredRecordExpirationDate: Date): Integer: Returns the number of expired records for the given Retention Policy Setup record. These records would be deleted if the Retention Policy was applied.
  • SetWhereOlderExpirationDateFilter(DateFieldNo: Integer; ExpirationDate: Date; var RecordRef: RecordRef; FilterGroup: Integer; NullDateReplacementValue: Date): This method places a filter on the record reference where records are older than the ExpirationDate. The filter excludes any record where the date field specified in DateFieldNo has no value.
  • SetWhereNewerExpirationDateFilter(DateFieldNo: Integer; ExpirationDate: Date; var RecordRef: RecordRef; FilterGroup: Integer; NullDateReplacementValue: Date): This method places a filter on the record reference where records are newer than the ExpirationDate. The filter excludes any record where the date field specified in DateFieldNo has no value.
  • SetSingleDateExpirationDateFilter(DateFieldNo: Integer; ExpirationDate: Date; var RecordRef: RecordRef; FilterGroup: Integer; NullDateReplacementValue: Date): This method places a filter on the record reference where records are expired one day at the expiration date. The filter excludes any record where the date field specified in DateFieldNo has no value.
  • TruncateTableRecords(RetentionPolicySetup: Record "Retention Policy Setup") + BC28: Truncates all records in the table specified by the retention policy setup.

Triggers

OnRun

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

Called by

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Apply Retention Policy"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources