---
id: object/codeunit/10150-us
type: object
title: Codeunit 10150 "O365 Tax Settings Management" (US)
summary: Codeunit 10150 "O365 Tax Settings Management" (US) in the US country layer (Microsoft.Finance.SalesTax). 19 public procedures, 1 events, 1 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - us layer
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: b7ef0daf2ae33f06f31f9096e2f9ebccd6e15b4a06e180a19366bc82b3a97283
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Finance/SalesTax/O365TaxSettingsManagement.Codeunit.al
    title: src/Layers/NA/BaseApp/Local/Finance/SalesTax/O365TaxSettingsManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/us
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 10150
name: O365 Tax Settings Management
namespace: Microsoft.Finance.SalesTax
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: US
counts:
  fields: 0
  procedures: 23
  events: 1
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 10150 "O365 Tax Settings Management" (US)

> Codeunit 10150 "O365 Tax Settings Management" (US) in the US country layer (Microsoft.Finance.SalesTax). 19 public procedures, 1 events, 1 event subscribers. Introduced in BC29, still in BC30.

US country layer · Microsoft.Finance.SalesTax · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Finance/SalesTax/O365TaxSettingsManagement.Codeunit.al) · facts from BC29

An object of the [US localization](../../localizations/us.md), not part of W1.

## Events published

- `OnBeforeSanitizeCustomerTemplateTax(ConfigTemplateLine: Record "Config. Template Line")` (integration)

## Event subscriptions

- LogWarningIfTemplateIncorrect subscribes to Codeunit "O365 Tax Settings Management" OnBeforeSanitizeCustomerTemplateTax

## Procedures

- `IsDefaultTaxAreaAPI(TaxAreaCode: Code[20]): Boolean`
- `UpdateSalesTaxSetupWizard(TempSalesTaxSetupWizard: Record "Sales Tax Setup Wizard" temporary)`
- `InitializeTaxSetupFromTaxAreaLinesForUS(var TempSalesTaxSetupWizard: Record "Sales Tax Setup Wizard" temporary)`
- `GetProvinceFullLength(JurisdictionCode: Code[10]): Text[100]`
- `GetTaxRate(JurisdictionCode: Code[10]): Decimal`
- `GetDefaultTaxDetail(var TaxDetail: Record "Tax Detail"; JurisdictionCode: Code[10]): Boolean`
- `GetDefaultTaxArea(): Code[20]`
- `GenerateTaxAreaDescription(TotalRate: Decimal; City: Text; State: Code[10]): Text[100]`
- `UpdateTaxAreaDescriptionsWithSameStateOrCity(SalesTaxSetupWizard: Record "Sales Tax Setup Wizard")`
- `CountTaxAreaLinesWithJurisdictionCode(JurisdictionCode: Code[10]): Integer`
- `HasBeenModifiedUS(SalesTaxSetupWizard: Record "Sales Tax Setup Wizard"): Boolean`
- `OtherTaxAreasWithSameStateOrCityExist(SalesTaxSetupWizard: Record "Sales Tax Setup Wizard"): Boolean`
- `StoreTaxSettingsForUS(var TempSalesTaxSetupWizard: Record "Sales Tax Setup Wizard" temporary; TaxRateDescription: Text[100]): Boolean`
- `UpdateTaxAreaNameUS(var SalesTaxSetupWizard: Record "Sales Tax Setup Wizard")`
- `AssignDefaultTaxArea(NewTaxAreaCode: Code[20])`
- `GetTotalTaxRate(TaxAreaCode: Code[20]): Decimal`
- `IsTaxSet(TaxAreaCode: Code[20]): Boolean`
- `CheckCustomerTemplateTaxIntegrity()`
- `DeleteTaxArea(var TaxArea: Record "Tax Area"): Boolean`

Plus 2 local procedures.

## Triggers

OnRun

## 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). 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: "O365 Tax Settings Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A US country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
