---
id: object/codeunit/5923
type: object
title: Codeunit 5923 "Service-Quote to Order"
summary: Codeunit 5923 "Service-Quote to Order" in Base Application (Microsoft.Service.Document). 1 public procedures, 19 events. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "24"
  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: 0a2e6aef66e713d6b535a19e7b3a70c2df86a59eade8a07347539ffed2a5046b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Document/ServiceQuotetoOrder.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Document/ServiceQuotetoOrder.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: 5923
name: Service-Quote to Order
namespace: Microsoft.Service.Document
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 27
  events: 19
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 8
  called_by: 1
  implements: 0
---

# Codeunit 5923 "Service-Quote to Order"

> Codeunit 5923 "Service-Quote to Order" in Base Application (Microsoft.Service.Document). 1 public procedures, 19 events. Present since at least BC23, still in BC30, changed in BC24.

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

## Properties

| Property | Value |
|---|---|
| TableNo | Service Header |
| Permissions | TableData "Loaner Entry" = rm, TableData "Service Order Allocation" = rimd |

## Events published

- `OnBeforeRun(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)` (integration)
- `OnAfterGetNoSeriesCode(var ServOrderHeader: Record "Service Header"; ServMgtSetup: Record "Service Mgt. Setup"; var NoSeriesCode: Code[20])` (integration)
- `OnAfterInsertServHeader(var ServiceHeaderOrder: Record "Service Header"; ServiceHeaderQuote: Record "Service Header")` (integration)
- `OnAfterInsertServiceLine(var ServiceItemLine2: Record "Service Item Line"; ServiceItemLine: Record "Service Item Line")` (integration)
- `OnAfterServOrderLineInsert(var ServiceOrderLine2: Record "Service Line"; ServiceOrderLine: Record "Service Line")` (integration)
  - subscribers: [Codeunit 6459 "Serv. Document Attachment Mgt."](../codeunit/6459.md) DocumentAttachmentFlow_FromServiceQuoteLineToServiceOrderLine
- `OnBeforeInsertServHeader(var ServiceHeaderOrder: Record "Service Header"; ServiceHeaderQuote: Record "Service Header")` (integration)
- `OnBeforeMakeOrder(var ServiceHeader: Record "Service Header"; var ServOrderHeader: Record "Service Header"; var IsHandled: Boolean)` (integration)
- `OnBeforeServCommentLineInsert(var ServiceCommentLine: Record "Service Comment Line"; ServiceQuoteHeader: Record "Service Header"; ServiceOrderHeader: Record "Service Header")` (integration)
- `OnBeforeServHeaderDelete(var ServiceHeader: Record "Service Header"; var SkipDelete: Boolean)` (integration)
- `OnBeforeServLineDeleteAll(var ServiceHeader: Record "Service Header"; var NewServiceHeader: Record "Service Header"; var SkipDelete: Boolean)` (integration)
- `OnBeforeServOrderLineInsert(var ServiceOrderLine2: Record "Service Line"; ServiceOrderLine: Record "Service Line"; ServOrderHeader: Record "Service Header"; var IsHandled: Boolean)` (integration)
- `OnBeforeServiceHeaderOrderModify(var ServiceOrderHeader: Record "Service Header"; ServiceQuoteHeader: Record "Service Header")` (integration)
  - subscribers: [Codeunit 6459 "Serv. Document Attachment Mgt."](../codeunit/6459.md) DocumentAttachmentFlow_FromServiceQuoteHeaderToServiceOrderHeader
- `OnBeforeServiceItemLineInsert(var ServiceItemLine2: Record "Service Item Line"; ServiceItemLine: Record "Service Item Line"; ServOrderHeader: Record "Service Header")` (integration)
- `OnBeforeTransferQuoteLineToOrderLineLoop(var ServiceQuoteLine: Record "Service Line"; var ServiceQuoteHeader: Record "Service Header"; var ServiceOrderHeader: Record "Service Header"; var IsHandled: Boolean; var ServiceOrderLine: Record "Service Line"; var ServiceOrderLineGlobal: Record "Service Line")` (integration)
- `OnMakeOrderOnBeforeServCommentLine2Insert(var ServiceCommentLine2: Record "Service Comment Line"; var ServiceCommentLine: Record "Service Comment Line")` (integration)
- `OnRunOnAfterGetServMgtSetup(var ServOrderHeader: Record "Service Header"; Rec: Record "Service Header")` (integration)
- `OnRunOnBeforeCheckBlockedCustOnDocs(var ServiceHeaderOrder: Record "Service Header"; var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)` (integration)
- `OnTransferQuoteToOrderLinesOnAfterServiceQuoteLineSetFilters(var QuoteServiceLine: Record "Service Line")` (integration)
- `OnMakeOrderOnBeforeTestNoSeries(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)` (integration)

## Procedures

- `ReturnOrderNo(): Code[20]`

Plus 7 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 5900 "Service Header"](../table/5900.md)

## 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 1535 "Approvals Mgmt."](../codeunit/1535.md) (2 calls: `MakeOrder → CopyApprovalEntryQuoteToOrder`, `MakeOrder → DeleteApprovalEntries`)
- [Codeunit 5900 "ServOrderManagement"](../codeunit/5900.md) (2 calls: `CheckItemServiceBlocked → CheckItemServiceBlocked`, `CheckServiceItemBlockedForAll → CheckServiceItemBlockedForAll`)
- [Codeunit 6453 "Serv. Item Check Avail."](../codeunit/6453.md) (2 calls: `TransferQuoteToOrderLines → RaiseUpdateInterruptedError`, `TransferQuoteToOrderLines → ServiceInvLineCheck`)
- [Codeunit 99000842 "Service Line-Reserve"](../codeunit/99000842.md) (2 calls: `MakeOrder → TransServLineToServLine`, `TransferQuoteToOrderLines → TransServLineToServLine`)
- [Codeunit 447 "Record Link Management"](../codeunit/447.md) (1 call: `MakeOrder → CopyLinks`)
- [Codeunit 5906 "ServLogManagement"](../codeunit/5906.md) (1 call: `MakeOrder → ServOrderQuoteChanged`)
- [Codeunit 6489 "Serv. Check Credit Limit"](../codeunit/6489.md) (1 call: `OnRun → ServiceHeaderCheck`)
- [Page 456 "No. Series"](../page/456.md) (1 call: `MakeOrder → (object)`)

## Called by

- [Codeunit 5922 "Serv-Quote to Order (Yes/No)"](../codeunit/5922.md) (3 calls: `OnRun → (object)`, `OnRun → ReturnOrderNo`, `ShowCreatedOrder → ReturnOrderNo`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24

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: "Service-Quote to Order")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
