---
id: object/codeunit/20366
type: object
title: Codeunit 20366 "Tax Engine Assisted Setup"
summary: Codeunit 20366 "Tax Engine Assisted Setup" in INTaxEngine (Microsoft.Finance.TaxEngine.JsonExchange). 13 public procedures, 10 events, 8 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - intaxengine
versions:
  introduced: "29"
  last_changed: null
  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: fa4b4e0459b8970c177aaeee92d69559b1ea8ae4d8df9d85cfaa56faa01428af
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/INTaxEngine/app/TaxEngine-JsonExchange/src/AssistedSetup/TaxEngineAssistedSetup.Codeunit.al
    title: src/Apps/W1/INTaxEngine/app/TaxEngine-JsonExchange/src/AssistedSetup/TaxEngineAssistedSetup.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 20366
name: Tax Engine Assisted Setup
namespace: Microsoft.Finance.TaxEngine.JsonExchange
app: INTaxEngine
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 35
  events: 10
  subscribers: 8
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 5
  called_by: 1
  implements: 0
---

# Codeunit 20366 "Tax Engine Assisted Setup"

> Codeunit 20366 "Tax Engine Assisted Setup" in INTaxEngine (Microsoft.Finance.TaxEngine.JsonExchange). 13 public procedures, 10 events, 8 event subscribers. Introduced in BC29, still in BC30.

INTaxEngine · Microsoft.Finance.TaxEngine.JsonExchange · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/INTaxEngine/app/TaxEngine-JsonExchange/src/AssistedSetup/TaxEngineAssistedSetup.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | tabledata "Tax Engine Notification" = rmi |

## Events published

- `OnSetupTaxPeriod()` (business)
- `OnSetupTaxTypes()` (business)
- `OnSetupUseCases()` (business)
- `OnSetupUseCaseTree()` (business)
- `OnGetUseCaseConfig(TaxType: Code[20]; CaseID: Guid; var ConfigText: Text; var IsHandled: Boolean)` (integration)
- `OnGetTaxTypeConfig(TaxType: Code[20]; var ConfigText: Text; var IsHandled: Boolean)` (integration)
- `OnImportTaxTypeFromLibrary(TaxType: Code[20])` (integration)
  - subscribers: [Codeunit 20366 "Tax Engine Assisted Setup"](../codeunit/20366.md) ImportTaxTypeFromLibrary
- `OnGetUpdatedUseCaseConfig(TaxType: Code[20]; CaseID: Guid; MajorVersion: Integer; var ConfigText: Text; var UseCaseUpdated: Boolean)` (integration)
- `OnGetUpdatedTaxTypeConfig(TaxType: Code[20]; MajorVersion: Integer; var ConfigText: Text; var TaxTypeUpdated: Boolean)` (integration)
- `OnBeforeShowTaxConfigUpgradedNotification(var ShowUpgradeNotification: Boolean)` (integration)

## Event subscriptions

- OnAfterFinishTaxEngineAssistedSetup subscribes to Page "Tax Engine Setup Wizard" OnAfterFinishTaxEngineAssistedSetup
- OnImportUseCaseOnDemand subscribes to Codeunit "Use Case Execution" OnImportUseCaseOnDemand
- OnUpdateUseCaseRecord subscribes to Codeunit "Use Case Execution" OnUpdateUseCaseRecord
- OnUpdateTaxTypeRecord subscribes to Codeunit "Use Case Execution" OnUpdateTaxTypeRecord
- Initialize subscribes to Codeunit "Guided Experience" OnRegisterAssistedSetup
- OnBeforeShowNotifications subscribes to Codeunit "Role Center Notification Mgt." OnBeforeShowNotifications
- OnOpenTaxTypes subscribes to Page "Tax Types" OnOpenPageEvent
- ImportTaxTypeFromLibrary subscribes to Codeunit "Tax Engine Assisted Setup" OnImportTaxTypeFromLibrary

## Procedures

- `SetupTaxEngine()`
- `SetupTaxEngineWithUseCases()`
- `SendNotificationForconfigUpgrade()`
- `PushTaxEngineNotifications()`
- `SendNotificationForEmptyTaxConfig()`
- `SendNotificationForUpgradeUseCases()`
- `SendNotificationForUpgradeTaxTypes()`
- `RunTaxEngineAssitedSetup(TaxConfigNotification: Notification)`
- `DoNotShowNotification(TaxConfigNotification: Notification)`
- `ShowModifiedUseCases(TaxConfigNotification: Notification)`
- `ShowModifiedTaxTypes(TaxConfigNotification: Notification)`
- `CompleteTaxConfigUpgrade(TaxConfigNotification: Notification)`
- `CompleteTaxTypeConfigUpgrade(TaxConfigNotification: Notification)`

Plus 4 local procedures.

## 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 20361 "Tax Json Deserialization"](../codeunit/20361.md) (13 calls: `ImportTaxTypeFromLibrary → HideDialog`, `ImportTaxTypeFromLibrary → ImportTaxTypes`, `OnImportUseCaseOnDemand → HideDialog`, …)
- [Codeunit 1990 "Guided Experience"](../codeunit/1990.md) (5 calls: `Initialize → AddTranslationForSetupObjectTitle`, `Initialize → InsertAssistedSetup`, `ResetTaxEngineAssistedSetup → IsAssistedSetupComplete`, …)
- [Codeunit 20367 "Tax Json Single Instance"](../codeunit/20367.md) (4 calls: `ShowModifiedTaxTypes → OpenReplacedTaxTypes`, `ShowModifiedTaxTypes → SetHideDialog`, `ShowModifiedUseCases → OpenReplcedTaxUseCases`, …)
- [Codeunit 20294 "Use Case Mgmt."](../codeunit/20294.md) (1 call: `SetupTaxEngineWithUseCases → IndentUseCases`)
- [Codeunit 43 "Language"](../codeunit/43.md) (1 call: `Initialize → GetDefaultApplicationLanguageId`)

## Called by

- [Page 20364 "Tax Engine Setup Wizard"](../page/20364.md) (1 call: `FinishAction → SetupTaxEngineWithUseCases`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

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). 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: "Tax Engine Assisted Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
