---
id: guideline/microsoft/knowledge/ui/wizard-collects-input-in-a-temporary-source-table
type: guideline
title: A wizard collects its input in a temporary source table and saves on Finish
summary: An assisted setup guide is a NavigatePage that the user can leave at any step. If the page is bound directly to a database table, every field the user fills in is written as they move through the steps, and closing the guide halfway leaves a partly configured record behind.
tier: official
language: en
tags:
  - navigatepage
  - wizard
  - sourcetabletemporary
  - assisted-setup
  - temporary-record
  - finish
  - cancel
system: development
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-11-23T00:15:10.597Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 608a9367c8f78d4850d2509520807085db1caaa2
evidence:
  - kind: guideline
    url: https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/ui/wizard-collects-input-in-a-temporary-source-table.md
    title: "microsoft/BCQuality: A wizard collects its input in a temporary source table and saves on Finish"
    date: "2026-11-19"
    commit: aaaf6c13c219294fcebf644f1662f4d77061e2f7
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcquality/277
repo_path: microsoft/knowledge/ui/wizard-collects-input-in-a-temporary-source-table.md
layer: microsoft
kind: rule
domain: ui
bc_version:
  - all
technologies:
  - al
countries:
  - w1
application_area:
  - all
examples: 2
identifiers:
  - NavigatePage
  - SourceTableTemporary
  - SourceTable
---

# A wizard collects its input in a temporary source table and saves on Finish

> An assisted setup guide is a NavigatePage that the user can leave at any step. If the page is bound directly to a database table, every field the user fills in is written as they move through the steps, and closing the guide halfway leaves a partly configured record behind.

[Rule on GitHub](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/ui/wizard-collects-input-in-a-temporary-source-table.md) · microsoft layer · ui · BC all · tier official · derived

## Description

An assisted setup guide is a `NavigatePage` that the user can leave at any step. If the page is bound directly to a database table, every field the user fills in is written as they move through the steps, and closing the guide halfway leaves a partly configured record behind. The documented structure avoids this: set `SourceTableTemporary = true` so the page's source-record changes are collected in temporary records, and transfer the data to the persistent table explicitly when the user chooses **Finish**.

`SourceTableTemporary` covers only the page's own source record. It does not prevent database writes made by other logic on the page, such as a trigger or action that modifies another table directly.

## Best Practice

Declare the wizard with `SourceTableTemporary = true`, initialize the temporary record when the page opens, and write to the real table in the procedure that the **Finish** action calls, before closing the page. Keep any other database writes in that same finishing step, so that leaving the guide early changes nothing.

See sample: [`wizard-collects-input-in-a-temporary-source-table.good.al`](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/ui/wizard-collects-input-in-a-temporary-source-table.good.al).

## Anti Pattern

A `NavigatePage` whose `SourceTable` is the live setup table without `SourceTableTemporary`, or a temporary wizard whose **Next** action or field triggers already modify persistent tables. An abandoned guide then leaves setup data that later code treats as complete. Reviewer signal: a `NavigatePage` with a `SourceTable` and no `SourceTableTemporary = true`, or `Insert`/`Modify` calls on non-temporary records outside the finishing procedure.

Do not report the temporary source table as lost data or as a missing save: the explicit transfer on **Finish** is the save. A wizard with no `SourceTable`, which keeps its input in page variables until **Finish**, follows the same principle.

See sample: [`wizard-collects-input-in-a-temporary-source-table.bad.al`](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/ui/wizard-collects-input-in-a-temporary-source-table.bad.al).

## References

[Designing assisted setup guides: Build the assisted setup](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-designing-navigate-pages#build-the-assisted-setup) and [SourceTableTemporary property](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/properties/devenv-sourcetabletemporary-property).

## Examples

- [Good: wizard-collects-input-in-a-temporary-source-table.good.al](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/ui/wizard-collects-input-in-a-temporary-source-table.good.al)
- [Bad: wizard-collects-input-in-a-temporary-source-table.bad.al](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/ui/wizard-collects-input-in-a-temporary-source-table.bad.al)

## Changed by

- [#277 knowledge: translations, assisted setup, API queries, and a new xmlport domain](../../../../changes/bcquality/277.md), 2026-11-19

---

From microsoft/BCQuality at aaaf6c1, MIT License, Copyright (c) 2026 Microsoft Corporation ([license](../../../LICENSE-BCQuality.txt)).
