---
id: object/pageextension/3997
type: object
title: Page extension 3997 "Reten. Pol. Setup Lines Ext."
summary: Page extension 3997 "Reten. Pol. Setup Lines Ext." in Base Application (System.DataAdministration), extends "Retention Policy Setup Lines". 1 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC25.
tier: official
language: en
tags:
  - pageextension
  - base application
versions:
  introduced: null
  last_changed: "25"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 3c6627bb546ff27330ab06cdf25e7fd06deab001cf219a117f3135aa9d5cf75c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/OtherCapabilities/RetentionPolicy/RetenPolSetupLinesExt.PageExt.al
    title: src/Layers/W1/BaseApp/OtherCapabilities/RetentionPolicy/RetenPolSetupLinesExt.PageExt.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/page/3902
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: pageextension
object_id: 3997
name: Reten. Pol. Setup Lines Ext.
namespace: System.DataAdministration
app: Base Application
extends: Retention Policy Setup Lines
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 2
  events: 1
  subscribers: 0
  controls: 1
  actions: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Page extension 3997 "Reten. Pol. Setup Lines Ext."

> Page extension 3997 "Reten. Pol. Setup Lines Ext." in Base Application (System.DataAdministration), extends "Retention Policy Setup Lines". 1 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC25.

Base Application · System.DataAdministration · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/OtherCapabilities/RetentionPolicy/RetenPolSetupLinesExt.PageExt.al) · facts from BC29

Extends [Retention Policy Setup Lines](../page/3902.md).

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| addbefore(Enabled) | KeepLastVersion | [Keep Last Version](../tableextension/3999.md#fields) | Specifies whether to prevent the last archived version of a document from expiring. |

## Events published

- `OnAfterSetIsDocumentArchiveTable(TableId: Integer; var IsDocumentArchiveTable: Boolean)` (integration)

## Procedures

- `SetIsDocumentArchiveTable(TableId: Integer)` (internal)

## Triggers

OnAfterGetCurrRecord, OnNewRecord

## Relations

- extends [Page 3902 "Retention Policy Setup Lines"](../page/3902.md)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). 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: "pageextension", object_name: "Reten. Pol. Setup Lines Ext.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
