---
id: object/codeunit/6485
type: object
title: Codeunit 6485 "Serv. Get Demand To Reserve"
summary: Codeunit 6485 "Serv. Get Demand To Reserve" in Base Application (Microsoft.Inventory.Tracking). 2 events, 9 event subscribers. Introduced in BC25, still in BC30, changed in BC27-28, BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "25"
  last_changed: "30"
  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: 45f4410c063601af7e5c11f52453aee310bff696778d4603632f42916b559865
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Inventory/Tracking/ServGetDemandToReserve.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Inventory/Tracking/ServGetDemandToReserve.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/12290
object_type: codeunit
object_id: 6485
name: Serv. Get Demand To Reserve
namespace: Microsoft.Inventory.Tracking
app: Base Application
extends: null
first_version: "25"
last_version: "30"
present_in:
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "27"
  - "28"
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 11
  events: 2
  subscribers: 9
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 0
  implements: 0
---

# Codeunit 6485 "Serv. Get Demand To Reserve"

> Codeunit 6485 "Serv. Get Demand To Reserve" in Base Application (Microsoft.Inventory.Tracking). 2 events, 9 event subscribers. Introduced in BC25, still in BC30, changed in BC27-28, BC30.

Base Application · Microsoft.Inventory.Tracking · BC25-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Inventory/Tracking/ServGetDemandToReserve.Codeunit.al) · facts from BC29

## Events published

- `OnSyncServiceOrderLinesOnBeforeInsertReservationWkshLine(var ReservationWkshLine: Record "Reservation Wksh. Line"; var TempServiceLine: Record "Service Line" temporary; var DoInsertReservationWkshLine: Boolean)` (integration)
- `OnGetDemandOnBeforeSetTempServiceLine(var ServiceLine: Record "Service Line"; var IsHandled: Boolean)` (integration, obsolete 27.0)

## Event subscriptions

- OnIsOutdated subscribes to Table "Reservation Wksh. Line" OnIsOutdated
- OnShowDocument subscribes to Page "Reservation Wksh. Log Factbox" OnShowDocument
- OnBeforeCreateSourceDocumentText subscribes to Codeunit "Reservation Worksheet Mgt." OnBeforeCreateSourceDocumentText
- OnGetSourceDocumentLine subscribes to Codeunit "Reservation Worksheet Mgt." OnGetSourceDocumentLine
- OnGetSourceDocumentLineQuantities subscribes to Codeunit "Reservation Worksheet Mgt." OnGetSourceDocumentLineQuantities
- OnShowSourceDocument subscribes to Codeunit "Reservation Worksheet Mgt." OnShowSourceDocument
- OnShowReservationEntries subscribes to Codeunit "Reservation Worksheet Mgt." OnShowReservationEntries
- OnShowStatistics subscribes to Codeunit "Reservation Worksheet Mgt." OnShowStatistics
- SyncServiceOrderLines subscribes to Codeunit "Reservation Worksheet Mgt." OnCalculateDemandOnAfterSync

## 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 300 "Reservation Worksheet Mgt."](../codeunit/300.md) (1 call: `SyncServiceOrderLines → GetAvailRemainingQtyOnItemLedgerEntry`)
- [Codeunit 99000842 "Service Line-Reserve"](../codeunit/99000842.md) (1 call: `OnGetSourceDocumentLineQuantities → GetReservedQtyFromInventory`)
- [Page 5914 "Service Order Statistics"](../page/5914.md) (1 call: `OnShowStatistics → (object)`)

## Recent changes

- 2026-10-06 [#12290 Remove CLEAN27 from Service Management](../../changes/bcapps/12290.md) (main, BC30, refactor)

## Across versions

- Present in: BC25-30
- Changed (declaration) in: BC27-28, BC30

## Deprecations

- procedure OnGetDemandOnBeforeSetTempServiceLine: Pending 27.0 (#if not CLEAN27), "This event is never raised."

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: "Serv. Get Demand To Reserve")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
