---
id: object/codeunit/7124
type: object
title: Codeunit 7124 "Create Expense Locations"
summary: Codeunit 7124 "Create Expense Locations" in ExpenseAgent (Microsoft.ExpenseAgent). 258 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - expenseagent
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: 9f66692112121864cc4847295d80fab9fccc4a45d89de2f93fdacbb81249cd90
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ExpenseAgent/app/src/Setup/Codeunits/CreateExpenseLocations.Codeunit.al
    title: src/Apps/W1/ExpenseAgent/app/src/Setup/Codeunits/CreateExpenseLocations.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11425
    - change/bcapps/11381
    - change/bcapps/10155
object_type: codeunit
object_id: 7124
name: Create Expense Locations
namespace: Microsoft.ExpenseAgent
app: ExpenseAgent
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: 258
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 3
  implements: 0
---

# Codeunit 7124 "Create Expense Locations"

> Codeunit 7124 "Create Expense Locations" in ExpenseAgent (Microsoft.ExpenseAgent). 258 public procedures. Introduced in BC29, still in BC30.

ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ExpenseAgent/app/src/Setup/Codeunits/CreateExpenseLocations.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| TableNo | Expense Location |

## Procedures

- `InsertExpenseLocations(var ExpenseLocation: Record "Expense Location")` (internal)
- `InsertExpenseLocation(var ExpenseLocation: Record "Expense Location"; Code: Code[20]; Description: Text[100]; CountryRegionCode: Code[10]; City: Text[30]; County: Text[30])` (internal)
- `UnitedArabEmiratesAll(): Code[20]`
- `AustriaAll(): Code[20]`
- `AustraliaAll(): Code[20]`
- `BelgiumAll(): Code[20]`
- `BulgariaAll(): Code[20]`
- `BruneiDarussalamAll(): Code[20]`
- `BrazilAll(): Code[20]`
- `SwitzerlandAll(): Code[20]`
- `SwitzerlandGeneva(): Code[20]`
- `SwitzerlandZurich(): Code[20]`
- `ChinaAll(): Code[20]`
- `CostaRicaAll(): Code[20]`
- `CyprusAll(): Code[20]`
- `CzechiaAll(): Code[20]`
- `AlgeriaAll(): Code[20]`
- `EstoniaAll(): Code[20]`
- `GreeceAll(): Code[20]`
- `SpainAll(): Code[20]`
- `FinlandAll(): Code[20]`
- `FijiIslandsAll(): Code[20]`
- `CroatiaAll(): Code[20]`
- `HungaryAll(): Code[20]`
- `IndonesiaAll(): Code[20]`
- `IrelandAll(): Code[20]`
- `IndiaAll(): Code[20]`
- `IcelandAll(): Code[20]`
- `ItalyAll(): Code[20]`
- `JapanAll(): Code[20]`
- `JapanTokyo(): Code[20]`
- `KenyaAll(): Code[20]`
- `LithuaniaAll(): Code[20]`
- `LuxembourgAll(): Code[20]`
- `LatviaAll(): Code[20]`
- `MoroccoAll(): Code[20]`
- `MontenegroAll(): Code[20]`
- `MaltaAll(): Code[20]`
- `MexicoAll(): Code[20]`
- `MalaysiaAll(): Code[20]`
- `MozambiqueAll(): Code[20]`
- `NigeriaAll(): Code[20]`
- `NorthernIrelandAll(): Code[20]`
- `NetherlandsAll(): Code[20]`
- `NorwayAll(): Code[20]`
- `NorwayOslo(): Code[20]`
- `NewZealandAll(): Code[20]`
- `PhilippinesAll(): Code[20]`
- `PolandAll(): Code[20]`
- `PortugalAll(): Code[20]`
- `RomaniaAll(): Code[20]`
- `SerbiaAll(): Code[20]`
- `RussiaAll(): Code[20]`
- `SaudiArabiaAll(): Code[20]`
- `SolomonIslandsAll(): Code[20]`
- `SwedenAll(): Code[20]`
- `SingaporeAll(): Code[20]`
- `SloveniaAll(): Code[20]`
- `SlovakiaAll(): Code[20]`
- `SwazilandAll(): Code[20]`
- `ThailandAll(): Code[20]`
- `TunisiaAll(): Code[20]`
- `TurkiyeAll(): Code[20]`
- `TanzaniaAll(): Code[20]`
- `UgandaAll(): Code[20]`
- `VanuatuAll(): Code[20]`
- `SamoaAll(): Code[20]`
- `SouthAfricaAll(): Code[20]`
- `AfghanistanAll(): Code[20]`
- `AlbaniaAll(): Code[20]`
- `AndorraAll(): Code[20]`
- `AngolaAll(): Code[20]`
- `AnguillaAll(): Code[20]`
- `AntarcticaAll(): Code[20]`
- `AntiguaBarbudaAll(): Code[20]`
- `ArgentinaAll(): Code[20]`
- `ArmeniaAll(): Code[20]`
- `ArubaAll(): Code[20]`
- `AzerbaijanAll(): Code[20]`
- `BahamasAll(): Code[20]`
- `BahrainAll(): Code[20]`
- `BangladeshAll(): Code[20]`
- `BarbadosAll(): Code[20]`
- `BelarusAll(): Code[20]`
- `BelizeAll(): Code[20]`
- `BeninAll(): Code[20]`
- `BermudaAll(): Code[20]`
- `BhutanAll(): Code[20]`
- `BoliviaAll(): Code[20]`
- `BonaireAll(): Code[20]`
- `BosniaHerzegovinaAll(): Code[20]`
- `BotswanaAll(): Code[20]`
- `BouvetIslandAll(): Code[20]`
- `BritishIndianOceanAll(): Code[20]`
- `BurkinaFasoAll(): Code[20]`
- `BurundiAll(): Code[20]`
- `CaboVerdeAll(): Code[20]`
- `CambodiaAll(): Code[20]`
- `CameroonAll(): Code[20]`
- `CaymanIslandsAll(): Code[20]`
- `CentralAfricanAll(): Code[20]`
- `ChadAll(): Code[20]`
- `ChileAll(): Code[20]`
- `ChristmasIslandAll(): Code[20]`
- `CocosIslandsAll(): Code[20]`
- `ColombiaAll(): Code[20]`
- `ComorosAll(): Code[20]`
- `CongoDRAll(): Code[20]`
- `CongoAll(): Code[20]`
- `CookIslandsAll(): Code[20]`
- `CubaAll(): Code[20]`
- `CuracaoAll(): Code[20]`
- `CotedIvoireAll(): Code[20]`
- `DjiboutiAll(): Code[20]`
- `DominicaAll(): Code[20]`
- `DominicanAll(): Code[20]`
- `EcuadorAll(): Code[20]`
- `EgyptAll(): Code[20]`
- `ElSalvadorAll(): Code[20]`
- `EquatorialGuineaAll(): Code[20]`
- `EritreaAll(): Code[20]`
- `EthiopiaAll(): Code[20]`
- `FalklandIslandsAll(): Code[20]`
- `FaroeIslandsAll(): Code[20]`
- `FrenchGuianaAll(): Code[20]`
- `FrenchPolynesiaAll(): Code[20]`
- `FrenchSouthernAll(): Code[20]`
- `GabonAll(): Code[20]`
- `GambiaAll(): Code[20]`
- `GeorgiaAll(): Code[20]`
- `GhanaAll(): Code[20]`
- `GibraltarAll(): Code[20]`
- `GreenlandAll(): Code[20]`
- `GrenadaAll(): Code[20]`
- `GuadeloupeAll(): Code[20]`
- `GuamAll(): Code[20]`
- `GuatemalaAll(): Code[20]`
- `GuernseyAll(): Code[20]`
- `GuineaAll(): Code[20]`
- `GuineaBissauAll(): Code[20]`
- `GuyanaAll(): Code[20]`
- `HaitiAll(): Code[20]`
- `HeardIslandAll(): Code[20]`
- `HolySeeAll(): Code[20]`
- `HondurasAll(): Code[20]`
- `HongKongAll(): Code[20]`
- `IsleManAll(): Code[20]`
- `IsraelAll(): Code[20]`
- `JamaicaAll(): Code[20]`
- `JerseyAll(): Code[20]`
- `JordanAll(): Code[20]`
- `KazakhstanAll(): Code[20]`
- `KiribatiAll(): Code[20]`
- `NorthKoreaAll(): Code[20]`
- `SouthKoreaAll(): Code[20]`
- `KuwaitAll(): Code[20]`
- `KyrgyzstanAll(): Code[20]`
- `LaosAll(): Code[20]`
- `LebanonAll(): Code[20]`
- `LesothoAll(): Code[20]`
- `LiberiaAll(): Code[20]`
- `LibyaAll(): Code[20]`
- `LiechtensteinAll(): Code[20]`
- `MacaoAll(): Code[20]`
- `MadagascarAll(): Code[20]`
- `MalawiAll(): Code[20]`
- `MaldivesAll(): Code[20]`
- `MaliAll(): Code[20]`
- `MarshallIslandsAll(): Code[20]`
- `MartiniqueAll(): Code[20]`
- `MauritaniaAll(): Code[20]`
- `MauritiusAll(): Code[20]`
- `MayotteAll(): Code[20]`
- `MicronesiaAll(): Code[20]`
- `MoldovaAll(): Code[20]`
- `MonacoAll(): Code[20]`
- `MongoliaAll(): Code[20]`
- `MontserratAll(): Code[20]`
- `MyanmarAll(): Code[20]`
- `NamibiaAll(): Code[20]`
- `NauruAll(): Code[20]`
- `NepalAll(): Code[20]`
- `NewCaledoniaAll(): Code[20]`
- `NigerAll(): Code[20]`
- `NiueAll(): Code[20]`
- `NorfolkIslandAll(): Code[20]`
- `NorthMacedoniaAll(): Code[20]`
- `NorthernMarianaAll(): Code[20]`
- `OmanAll(): Code[20]`
- `PakistanAll(): Code[20]`
- `PalauAll(): Code[20]`
- `PalestineAll(): Code[20]`
- `PanamaAll(): Code[20]`
- `PapuaNewGuineaAll(): Code[20]`
- `ParaguayAll(): Code[20]`
- `PeruAll(): Code[20]`
- `PitcairnAll(): Code[20]`
- `PuertoRicoAll(): Code[20]`
- `QatarAll(): Code[20]`
- `RwandaAll(): Code[20]`
- `ReunionAll(): Code[20]`
- `SaintBarthelemyAll(): Code[20]`
- `SaintHelenaAll(): Code[20]`
- `SaintKittsNevisAll(): Code[20]`
- `SaintLuciaAll(): Code[20]`
- `SaintMartinAll(): Code[20]`
- `SaintPierreQuelonAll(): Code[20]`
- `SaintVincentAll(): Code[20]`
- `SanMarinoAll(): Code[20]`
- `SaoTomeAll(): Code[20]`
- `SenegalAll(): Code[20]`
- `SeychellesAll(): Code[20]`
- `SierraLeoneAll(): Code[20]`
- `SintMaartenAll(): Code[20]`
- `SomaliaAll(): Code[20]`
- `SouthGeorgiaAll(): Code[20]`
- `SouthSudanAll(): Code[20]`
- `SriLankaAll(): Code[20]`
- `SudanAll(): Code[20]`
- `SurinameAll(): Code[20]`
- `SvalbardJanMayenAll(): Code[20]`
- `SyriaAll(): Code[20]`
- `TaiwanAll(): Code[20]`
- `TajikistanAll(): Code[20]`
- `TimorLesteAll(): Code[20]`
- `TogoAll(): Code[20]`
- `TokelauAll(): Code[20]`
- `TongaAll(): Code[20]`
- `TrinidadTobagoAll(): Code[20]`
- `TurkmenistanAll(): Code[20]`
- `TurksCalcosAll(): Code[20]`
- `TuvaluAll(): Code[20]`
- `UkraineAll(): Code[20]`
- `USMinorOutlyingAll(): Code[20]`
- `UruguayAll(): Code[20]`
- `UzbekistanAll(): Code[20]`
- `VenezuelAll(): Code[20]`
- `VietnamAll(): Code[20]`
- `VirginIslandsBrAll(): Code[20]`
- `VirginIslandsUSAll(): Code[20]`
- `WallisatunaAll(): Code[20]`
- `WesternSaharaAll(): Code[20]`
- `YemenAll(): Code[20]`
- `ZambiaAll(): Code[20]`
- `ZimbabweAll(): Code[20]`
- `AlandIslandsAll(): Code[20]`
- `CanadaAll(): Code[20]`
- `DenmarkAll(): Code[20]`
- `DenmarkCph(): Code[20]`
- `Domestic(): Code[20]`
- `FranceAll(): Code[20]`
- `FranceParis(): Code[20]`
- `GermanyAll(): Code[20]`
- `UKLondon(): Code[20]`
- `UKOther(): Code[20]`
- `USAFlorida(): Code[20]`
- `USANY(): Code[20]`
- `USAOther(): Code[20]`

## Triggers

OnRun

## Relations

- runs on [Table 6925 "Expense Location"](../table/6925.md)

## Called by

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 7126 "Create Expense Rule Conditions"](../codeunit/7126.md) (255 calls: `CreateExpenseRuleConditions → AfghanistanAll`, `CreateExpenseRuleConditions → AlandIslandsAll`, `CreateExpenseRuleConditions → AlbaniaAll`, …)
- [Codeunit 7128 "Create Expense Rule Headers"](../codeunit/7128.md) (255 calls: `InsertExpenseRuleHeaders → AfghanistanAll`, `InsertExpenseRuleHeaders → AlandIslandsAll`, `InsertExpenseRuleHeaders → AlbaniaAll`, …)
- [Codeunit 6973 "Create Expense Categories"](../codeunit/6973.md) (1 call: `BuildLocationSeeds → (object)`)

## Recent changes

- 2026-09-15 [#11425 Bug 650137: [29.x] Expense Locations and Per-diem rules in configuration - Backport](../../changes/bcapps/11425.md) (releases/29.x, BC29, feature, added)
- 2026-09-14 [#11381 Slice 641293: [Expense Agent] Expense Locations and Per-diem rules in configuration - added check for existing country](../../changes/bcapps/11381.md) (main, BC30, fix)
- 2026-09-10 [#10155 Slice 641293: [Expense Agent] Expense Locations and Per-diem rules in configurationAdded more locations](../../changes/bcapps/10155.md) (main, BC30, feature, added)

## 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: "Create Expense Locations")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
