---
id: change/bcapps/14118
type: change
title: "#14118 Refactor index list refresh and index-disable confirmations"
summary: The Indexes List Part page refactors shared logic for refreshing index lists and confirming disablement to eliminate code duplication, while preserving the selected index after refresh or selecting the first remaining one if deleted.
tier: official
language: en
tags:
  - refactor
  - main
  - bc30
  - page indexes list part
system: administration
review:
  state: reviewed
  by: opus
  at: "2026-11-17T00:58:47.718Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4069dbb19806dfba13fc33c5ed1a53cab7e95e2a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14118
    title: "microsoft/BCApps#14118: Refactor index list refresh and index-disable confirmations"
    date: "2026-11-16"
    commit: 4069dbb19806dfba13fc33c5ed1a53cab7e95e2a
    t: null
    quote: Extract shared index-list refresh and disable-confirmation logic to remove duplication.
links:
  learn: []
  objects:
    - object/page/8704
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/manage-indexes
      title: Manage database index usage
      label: possibly related
      why: Documents managing database indexes and their usage.
      by: model
number: 14118
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14118
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-16T21:37:59Z"
author: mbaranovych
author_type: User
community_contribution: false
labels:
  - "AL: System Application"
  - "Team: Integrations"
change_class: code
change_kind: refactor
behavior_change: false
breaking: false
files:
  count: 1
  additions: 33
  deletions: 41
  al: 1
apps:
  - System Application
objects_touched:
  - key: page/8704
    page: page/8704
    type: page
    id: 8704
    name: Indexes List Part
    app: System Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650163
systems:
  - administration
quote: Extract shared index-list refresh and disable-confirmation logic to remove duplication.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14118 Refactor index list refresh and index-disable confirmations

> The Indexes List Part page refactors shared logic for refreshing index lists and confirming disablement to eliminate code duplication, while preserving the selected index after refresh or selecting the first remaining one if deleted.

[Pull request](https://github.com/microsoft/BCApps/pull/14118) · merged into `main` (BC30) on 2026-11-16 by mbaranovych · 1 file (+33 -41), 1 AL · refactor · tier official · reviewed (checked by Opus)

## What changed

- Extracted shared index-list refresh logic to remove duplication
- Extracted shared index-disable confirmation logic to reduce repeated code
- Preserves the selected index after refresh operations
- Selects the first remaining index if the previously selected one is removed
- Low-risk UI refactor with no API or schema changes

## AL objects touched

- [Page 8704 "Indexes List Part"](../../objects/page/8704.md), System Application: modified

## Context

- Work items: AB#650163
- Labels: AL: System Application, Team: Integrations
- Systems: administration
- From the description: "Extract shared index-list refresh and disable-confirmation logic to remove duplication."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Manage database index usage](https://learn.microsoft.com/dynamics365/business-central/manage-indexes) — possibly related: Documents managing database indexes and their usage. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
