---
id: object/codeunit/802
type: object
title: Codeunit 802 "Online Map Management"
summary: Codeunit 802 "Online Map Management" in Base Application (Microsoft.eServices.OnlineMap). 9 public procedures, 14 events, 1 event subscribers. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  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: 94f698210981add26e7bc1b006f85eddff72e9ccd5bf3cc73c82adc32b5beba1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/eServices/OnlineMap/OnlineMapManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/eServices/OnlineMap/OnlineMapManagement.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: 802
name: Online Map Management
namespace: Microsoft.eServices.OnlineMap
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 36
  events: 14
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 16
  implements: 0
---

# Codeunit 802 "Online Map Management"

> Codeunit 802 "Online Map Management" in Base Application (Microsoft.eServices.OnlineMap). 9 public procedures, 14 events, 1 event subscribers. Present since at least BC23, still in BC30.

Base Application · Microsoft.eServices.OnlineMap · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/eServices/OnlineMap/OnlineMapManagement.Codeunit.al) · facts from BC29

## Events published

- `OnAfterGetAddress(TableID: Integer; RecPosition: Text; var Parameters: array[12] of Text[100]; var RecordRef: RecordRef)` (integration)
- `OnAfterMakeSelection(TableID: Integer; Position: Text[1000]; Selection: Integer)` (integration)
- `OnAfterProcessWebMap(url: Text[1024]; var IsHandled: Boolean)` (integration)
- `OnAfterProcessWebDirections(url: Text[1024]; var IsHandled: Boolean)` (integration)
- `OnAfterValidAddress(TableID: Integer; var IsValid: Boolean)` (integration)
- `OnBeforeMakeSelection(var MainMenu: Text; TableID: Integer; Position: Text[1000]; var Selection: Integer; var IsHandled: Boolean)` (integration)
- `OnBeforeGetAddress(TableID: Integer; RecPosition: Text; var Parameters: array[12] of Text[100]; var IsHandled: Boolean)` (integration)
- `OnBeforeGetSetup(var OnlineMapSetup: Record "Online Map Setup"; var OnlineMapParameterSetup: Record "Online Map Parameter Setup"; var IsHandled: Boolean)` (integration)
- `OnBeforeSetupDefault(var OnlineMapSetup: Record "Online Map Setup"; var OnlineMapParameterSetup: Record "Online Map Parameter Setup"; var IsHandled: Boolean)` (integration)
- `OnBeforeSubstituteParameters(var url: Text[1024]; Parameters: array[12] of Text[100]; var IsHandled: Boolean)` (integration)
- `OnBeforeValidAddress(TableID: Integer; var IsValid: Boolean)` (integration)
- `OnBeforeURLEncode(InText: Text[250]; var OutText: Text[250]; var IsHandled: Boolean)` (integration)
- `OnMakeSelectionAfterStrMenu(var Selection: Integer; var OnlineMapParameterSetup: Record "Online Map Parameter Setup")` (integration)
- `OnBuildParametersOnBeforeGetOnlineMapSetup(TableNo: Integer; var IsHandled: Boolean)` (integration)

## Event subscriptions

- HandleMAPRegisterServiceConnection subscribes to Table "Service Connection" OnRegisterServiceConnection

## Procedures

- `MakeSelectionIfMapEnabled(TableID: Integer; Position: Text[1000])`
- `MakeSelection(TableID: Integer; Position: Text[1000])`
- `ProcessMap(TableNo: Integer; ToRecPosition: Text[1000])`
- `ProcessDirections(FromNo: Integer; FromRecPosition: Text[1000]; ToNo: Integer; ToRecPosition: Text[1000]; Distance: Option; Route: Option)`
- `BuildParameters(TableNo: Integer; RecPosition: Text[1000]; var Parameters: array[12] of Text[100]; Distance: Option Miles,Kilometers; Route: Option Quickest,Shortest)`
- `TestSetup(): Boolean`
- `SubstituteParameters(var url: Text[1024]; Parameters: array[12] of Text[100])`
- `SetupDefault()`
- `SetParameters(var RecordRef: RecordRef; var Parameters: array[12] of Text[100]; AddressFieldNo: Integer; CityFieldNo: Integer; CountyFieldNo: Integer; PostCodeFieldNo: Integer; CountryCodeFieldNo: Integer)`

Plus 12 local procedures.

## Triggers

OnRun

## 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.

- [Page 806 "Online Map Location"](../page/806.md) (2 calls: `LocationProvider::LocationChanged → ProcessDirections`, `LocationProvider::LocationChanged → SetupDefault`)
- [Page 800 "Online Map Setup"](../page/800.md) (1 call: `OnOpenPage → SetupDefault`)
- [Table 14 "Location"](../table/14.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 156 "Resource"](../table/156.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 167 "Job"](../table/167.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 18 "Customer"](../table/18.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 222 "Ship-to Address"](../table/222.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 2224 "Remit Address"](../table/2224.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 224 "Order Address"](../table/224.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 23 "Vendor"](../table/23.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 270 "Bank Account"](../table/270.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 5050 "Contact"](../table/5050.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 5135 "Job Archive"](../table/5135.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 5200 "Employee"](../table/5200.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 79 "Company Information"](../table/79.md) (1 call: `DisplayMap → MakeSelectionIfMapEnabled`)
- [Table 801 "Online Map Parameter Setup"](../table/801.md) (1 call: `InsertDefaults → SetupDefault`)

## Across versions

- Present in: BC23-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: "Online Map Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
