Codeunit 3902 "Retention Policy Setup"
System Application · System.DataAdministration
Across versions
- BC23-24present
- BC251 procedures added
- BC26-28unchanged
- BC291 procedures removed
- BC30unchanged
Neighbourhood 8 connected objects and pages
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
- Codeunit 3998 “Retention Policy Scheduler” (3 calls:
CheckRetentionPolicyScheduleOnAfterDelete → IsRetentionPolicyEnabled,CheckRetentionPolicyScheduleOnAfterInsert → IsRetentionPolicyEnabled,CheckRetentionPolicyScheduleOnAfterModify → IsRetentionPolicyEnabled) - Table 3902 “Retention Policy Setup Line” (3 calls:
GetTableFilterText → GetTableFilterText,GetTableFilterView → GetTableFilterView,SetTableFilter → SetTableFilterView) - Codeunit 1932 “Scheduled Perf. Profiler Impl.” (1 call:
CreateRetentionPolicySetup → FindOrCreateRetentionPeriod) - Codeunit 1933 “Performance Profiler Installer” (1 call:
AddRetentionPolicyAllowedTables → FindOrCreateRetentionPeriod) - Codeunit 3999 “Reten. Pol. Install - BaseApp” (1 call:
FindOrCreateRetentionPeriod → FindOrCreateRetentionPeriod) - Codeunit 8390 “Financial Report Auditing” (1 call:
AddRetentionPolicy → FindOrCreateRetentionPeriod)
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.