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

Codeunit 3902 "Retention Policy Setup"

System Application · System.DataAdministration

Across versions

  1. BC23-24present
  2. BC251 procedures added
  3. BC26-28unchanged
  4. BC291 procedures removed
  5. BC30unchanged

Neighbourhood 8 connected objects and pages

Codeunit 3903 "Retention Policy Setup Impl." (calls, 15 links)Retention Policy Setup Impl.Codeunit 3998 "Retention Policy Scheduler" (calls, 3 links)Retention Policy SchedulerTable 3902 "Retention Policy Setup Line" (calls, 3 links)Retention Policy Setup LineCodeunit 3908 "Retention Policy Log" (calls, 2 links)Retention Policy LogCodeunit 1932 "Scheduled Perf. Profiler Impl." (calls)Scheduled Perf. Profiler Impl.Codeunit 1933 "Performance Profiler Installer" (calls)Performance Profiler InstallerCodeunit 3999 "Reten. Pol. Install - BaseApp" (calls)Reten. Pol. Install - BaseAppCodeunit 8390 "Financial Report Auditing" (calls)Financial Report Auditing

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

Event subscriptions

  • VerifyRetentionPolicySetupOnbeforeDeleteRetentionPeriod subscribes to Table “Retention Period” OnBeforeDeleteEvent
  • VerifyRetentionPolicySetupOnbeforeModifyRetentionPeriod subscribes to Table “Retention Period” OnBeforeModifyEvent
  • VerifyRetentionPolicyAllowedTablesOnBeforeInsertRetenPolSetup subscribes to Table “Retention Policy Setup” OnBeforeInsertEvent
  • InsertDefaultTableFiltersOnAfterInsertRetenPolSetup subscribes to Table “Retention Policy Setup” OnAfterInsertEvent
  • ErrorOnBeforeRenameRetentionPolicySetup subscribes to Table “Retention Policy Setup” OnBeforeRenameEvent
  • ErrorOnBeforeRenameRetentionPolicySetupLine subscribes to Table “Retention Policy Setup Line” OnBeforeRenameEvent
  • CheckRecordLockedOnRetentionPolicySetupLineOnAfterModify subscribes to Table “Retention Policy Setup Line” OnBeforeModifyEvent
  • CheckRecordLockedOnRetentionPolicySetupLineOnAfterDelete subscribes to Table “Retention Policy Setup Line” OnBeforeDeleteEvent

Procedures

  • SetTableFilterView(var RetentionPolicySetupLine: Record "Retention Policy Setup Line"): Text[2048]: Use this procedure to open a Filter Page Builder page and store the resulting filter in view format on the retention policy setup line.
  • GetTableFilterView(RetentionPolicySetupLine: Record "Retention Policy Setup Line"): Text: Use this procedure to get the filter that is stored in a view format on the retention policy setup line.
  • GetTableFilterText(RetentionPolicySetupLine: Record "Retention Policy Setup Line"): Text[2048]: Use this procedure to get the filter that is stored in a text format on the retention policy setup line.
  • TableIdLookup(TableId: Integer): Integer: Use this procedure to open a lookup page to select one of the allowed Table Id’s.
  • DateFieldNoLookup(TableId: Integer; FieldNo: Integer): Integer: Use this procedure to open a lookup page to select one of the date or datetime fields for the given table.
  • IsRetentionPolicyEnabled(): Boolean: This procedure checks whether any retention policies are enabled.
  • IsRetentionPolicyEnabled(TableId: Integer): Boolean: This procedure checks whether a retention policy is enabled for the given table ID.
  • FindOrCreateRetentionPeriod(RetentionPeriodEnum: Enum "Retention Period Enum"): Code[20] + BC25: Finds or creates a new retention period record for the provided retention period.
  • FindOrCreateRetentionPeriod(RetentionPeriodEnum: Enum "Retention Period Enum"; RetPeriodCalc: DateFormula): Code[20] + BC25: Finds or creates a new retention period record for the provided retention period.
  • FindOrCreateRetentionPeriod(RetentionPeriodCode: Code[20]; RetentionPeriodEnum: Enum "Retention Period Enum"; RetPeriodCalc: DateFormula): Code[20] + BC25: Finds or creates a new retention period record for the provided retention period.

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.

  • Codeunit 3903 “Retention Policy Setup Impl.” (15 calls: CheckRecordLockedOnRetentionPolicySetupLineOnAfterDelete → CheckRecordLockedOnRetentionPolicySetupLine, CheckRecordLockedOnRetentionPolicySetupLineOnAfterModify → CheckRecordLockedOnRetentionPolicySetupLine, DateFieldNoLookup → DateFieldNoLookup, …)
  • Codeunit 3908 “Retention Policy Log” (2 calls: ErrorOnBeforeRenameRetentionPolicySetup → LogError, ErrorOnBeforeRenameRetentionPolicySetupLine → LogError)

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: "Retention Policy Setup"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources