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

Codeunit 3905 "Reten. Pol. Allowed Tables"

System Application · System.DataAdministration

Across versions

  1. BC23-27present
  2. BC282 procedures added
  3. BC29-30unchanged

Neighbourhood 17 connected objects and pages

Codeunit 1596 "Email Installer" (event subscribers)Email InstallerCodeunit 1933 "Performance Profiler Installer" (event subscribers)Performance Profiler InstallerCodeunit 30273 "Shpfy Installer" (event subscribers)Shpfy InstallerCodeunit 3907 "Retention Policy Installer" (event subscribers)Retention Policy InstallerCodeunit 3999 "Reten. Pol. Install - BaseApp" (event subscribers)Reten. Pol. Install - BaseAppCodeunit 3999 "Reten. Pol. Install - BaseApp" (calls, 19 links)Reten. Pol. Install - BaseAppCodeunit 3906 "Reten. Pol. Allowed Tbl. Impl." (calls, 14 links)Reten. Pol. Allowed Tbl. Impl.Codeunit 3903 "Retention Policy Setup Impl." (calls, 3 links)Retention Policy Setup Impl.Codeunit 3904 "Apply Retention Policy Impl." (calls, 3 links)Apply Retention Policy Impl.Codeunit 3915 "Reten. Pol. Filtering Impl." (calls, 2 links)Reten. Pol. Filtering Impl.Codeunit 3994 "Reten. Pol. Doc. Arch. Fltrng." (calls, 2 links)Reten. Pol. Doc. Arch. Fltrng.Codeunit 6450 "Serv. Integration Mgt." (calls, 2 links)Serv. Integration Mgt.Codeunit 1933 "Performance Profiler Installer" (calls)Performance Profiler InstallerCodeunit 3908 "Retention Policy Log" (calls)Retention Policy LogCodeunit 8390 "Financial Report Auditing" (calls)Page 3903 "Retention Policy Setup List" (calls)Page 9040 "Data Administration Guide" (calls)

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
Permissions tabledata Field = r, tabledata “Retention Policy Allowed Table” = r

Events published

Event subscriptions

  • VerifyInsertAllowed subscribes to Table “Retention Policy Allowed Table” OnBeforeInsertEvent
  • ErrorOnBeforeRenameAllowedTable subscribes to Table “Retention Policy Allowed Table” OnBeforeRenameEvent
  • VerifyModifyAllowed subscribes to Table “Retention Policy Allowed Table” OnBeforeModifyEvent

Procedures

  • AddAllowedTable(TableId: Integer): Boolean: Adds a table to the list of allowed tables.
  • AddAllowedTable(TableId: Integer; DefaultDateFieldNo: Integer): Boolean: Adds a table to the list of allowed tables.
  • AddAllowedTable(TableId: Integer; DefaultDateFieldNo: Integer; MandatoryMinRetenDays: Integer): Boolean: Adds a table to the list of allowed tables.
  • AddAllowedTable(TableId: Integer; DefaultDateFieldNo: Integer; TableFilters: JsonArray): Boolean: Adds a table to the list of allowed tables.
  • AddAllowedTable(TableId: Integer; TableFilters: JsonArray): Boolean: Adds a table to the list of allowed tables.
  • AddAllowedTable(TableId: Integer; DefaultDateFieldNo: Integer; MandatoryMinRetenDays: Integer; RetenPolFiltering: Enum "Reten. Pol. Filtering"; RetenPolDeleting: Enum "Reten. Pol. Deleting"; TableFilters: JsonArray): Boolean: Adds a table to the list of allowed tables.
  • AddTableFilterToJsonArray(var TableFilters: JsonArray; RetentionPeriodEnum: Enum "Retention Period Enum"; DateFieldNo: Integer; Enabled: Boolean; Locked: Boolean; RecordRef: RecordRef): This helper method is used to build an array of table filters which will be inserted automatically when creating a retention policy for the allowed table. You must first build up the array by calling this helper function and adding all relevant table filter information before passing the JsonArray t…
  • AddTableFilterToJsonArray(var TableFilters: JsonArray; RetPeriodCalc: DateFormula; DateFieldNo: Integer; Enabled: Boolean; Locked: Boolean; RecordRef: RecordRef): This helper method is used to build an array of table filters which will be inserted automatically when creating a retention policy for the allowed table. You must first build up the array by calling this helper function and adding all relevant table filter information before passing the JsonArray t…
  • RemoveAllowedTable(TableId: Integer): Boolean: Removes a table from the list of allowed tables.
  • IsAllowedTable(TableId: Integer): Boolean: Checks whether a table exists in the list of allowed tables.
  • GetAllowedTables(var AllowedTables: List of [Integer]): Returns the allowed tables as a list.
  • GetAllowedTables(): Text: Returns the allowed tables as a filter string.
  • GetRetenPolFiltering(TableId: Integer): Enum "Reten. Pol. Filtering": Returns the enum value set for retention policy filtering. This determines which code will handle the filtering of records when the retention policy for the allowed table is applied.
  • GetRetenPolDeleting(TableId: Integer): Enum "Reten. Pol. Deleting": Returns the enum value set for retention policy deleting. This determines which code will handle the deleting of records when the retention policy for the allowed table is applied.
  • GetDefaultDateFieldNo(TableId: Integer): Integer: Returns the number of the date or datetime field in the list of allowed tables for the given table.
  • GetMandatoryMinimumRetentionDays(TableId: Integer): Integer: Returns the mandatory minimum number of retention days for the given table.
  • CalcMinimumExpirationDate(TableId: Integer): Date: Calculates the minimum expiration date for a given allowed table based on the minimum number of retention days and today’s date.
  • SetTruncateAllowed(TableId: Integer; TruncateAllowed: Boolean) + BC28: Sets whether truncation is allowed for a given table.
  • IsTruncateAllowed(TableId: Integer): Boolean + BC28: Checks whether truncation is allowed for a given table.

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: "Reten. Pol. Allowed Tables"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources