---
id: post/yzhums-com/62368
type: post
title: "Dynamics 365 Business Central: How to specify the No. Series when creating a Sales Order (Make Order) from Sales Quote – Customization"
summary: This post explains how to customize the Make Order process to specify the number series when converting a sales quote to a sales order, since the standard process automatically uses default numbering without allowing manual selection.
tier: community
language: en
tags:
  - customization
  - number series
  - sales quotes
  - sales orders
  - conversion
  - event subscribers
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:42:40.248Z"
  flags: []
generated:
  at: "2026-10-26T05:51:10.938Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: ee666ee8a0fd7ccad91716322b3918c73b2ba286bb25f1a9c31cebcd81867bc3
evidence:
  - kind: blog
    url: https://yzhums.com/62368/
    title: "Dynamics 365 Business Central: How to specify the No. Series when creating a Sales Order (Make Order) from Sales Quote – Customization"
    date: "2025-05-27"
    commit: null
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/86
    - object/codeunit/310
    - object/codeunit/1400
    - object/table/36
    - object/table/311
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  related:
    - to: post/yzhums-com/64874
      title: "Dynamics 365 Business Central: Copy Sales and Purchase Line Descriptions (Type G/L Account) to G/L Entries"
      label: possibly related
      why: both name Table 311 "Sales & Receivables Setup"
      by: code
    - to: post/yzhums-com/69444
      title: "Dynamics 365 Business Central: How to check whether External Document No./Vendor Invoice No. are unique or duplicated – Customization"
      label: possibly related
      why: both name Table 311 "Sales & Receivables Setup"
      by: code
    - to: post/yzhums-com/66212
      title: "Dynamics 365 Business Central: Use a default quantity of 1 for all types on documents – Customization"
      label: possibly related
      why: both name Table 311 "Sales & Receivables Setup"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Belgium/specify-journal-template-mandatory
      title: Make Journal Templates Mandatory [BE]
      label: possibly related
      why: names Table 311 "Sales & Receivables Setup"
      by: code
    - to: post/aardvarklabs-blog/2202
      title: Step by Step Guide to Importing Excel Data into Business Central
      label: possibly related
      why: both name Codeunit 310 "No. Series"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-walktrough-designing-reports-multiple-tables
      title: Walkthrough - Designing a report from multiple tables
      label: possibly related
      why: names Table 36 "Sales Header"
      by: code
    - to: post/sauravdhyani-com/tag-blogger-com-1999-blog-3122193036149030463-post-7075429771899937250--e4e630a6bb
      title: Why No. Series Break After Upgrading to Business Central 27 (And How to Fix It)
      label: possibly related
      why: both name Codeunit 310 "No. Series"
      by: code
post_id: "62368"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/62368/
published_at: "2025-05-27T01:01:29.000Z"
author: Yun Zhu
full_text: false
words: 869
quotes: []
code_objects_mentioned:
  - codeunit Sales-Quote to Order
  - codeunit No. Series
  - codeunit DocumentNoVisibility
  - table Sales Header
  - table Sales & Receivables Setup
systems:
  - sales
versions_mentioned: []
cautions:
  - kind: warning
    quote: Please do not use OnBeforeInsertSalesOrderHeader event, it will cause the following error
    objects:
      - type: codeunit
        name: Sales-Quote to Order
    events:
      - OnBeforeInsertSalesOrderHeader
    versions: []
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2025/05/Snipaste_2025-05-26_15-32-11.png
  image_alt: null
  image_w: null
  image_h: null
  site_name: Dynamics 365 Lab
  favicon: https://yzhums.com/wp-content/uploads/2020/08/cropped-logo-3-32x32.png
  probed_at: "2026-10-26T06:20:04.321Z"
---

# Dynamics 365 Business Central: How to specify the No. Series when creating a Sales Order (Make Order) from Sales Quote – Customization

[Read the post](https://yzhums.com/62368/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2025-05-27 · 869 words · tier community · reviewed (checked by Opus)

> This post explains how to customize the Make Order process to specify the number series when converting a sales quote to a sales order, since the standard process automatically uses default numbering without allowing manual selection.

## Key points

- Sales orders created from quotes normally use automatic numbering from the default no. series, but the Make Order action does not offer a choice of series like manual order creation does.
- The default no. series must have Default Nos. enabled or an error prevents automatic order creation from quotes.
- Customization uses the OnCreateSalesHeaderOnBeforeSalesOrderLineLockTable event in codeunit 86 Sales-Quote to Order to manipulate the order number.
- The standard No. Series codeunit offers LookupRelatedNoSeries function to open a selection dialog and GetNextNo to retrieve the next number, enabling manual series selection during conversion.
- Using OnBeforeInsertSalesOrderHeader event causes transaction lock errors due to Form.RunModal restrictions, so OnCreateSalesHeaderOnBeforeSalesOrderLineLockTable is the correct approach.

## AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

- [codeunit 86 "Sales-Quote to Order"](../../objects/codeunit/86.md)
- [codeunit 310 "No. Series"](../../objects/codeunit/310.md)
- [codeunit 1400 "DocumentNoVisibility"](../../objects/codeunit/1400.md)
- [table 36 "Sales Header"](../../objects/table/36.md)
- [table 311 "Sales & Receivables Setup"](../../objects/table/311.md)

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Dynamics 365 Business Central: Copy Sales and Purchase Line Descriptions (Type G/L Account) to G/L Entries](../../posts/yzhums-com/64874.md) — possibly related: both name Table 311 "Sales & Receivables Setup"
- [Dynamics 365 Business Central: How to check whether External Document No./Vendor Invoice No. are unique or duplicated – Customization](../../posts/yzhums-com/69444.md) — possibly related: both name Table 311 "Sales & Receivables Setup"
- [Dynamics 365 Business Central: Use a default quantity of 1 for all types on documents – Customization](../../posts/yzhums-com/66212.md) — possibly related: both name Table 311 "Sales & Receivables Setup"
- [Make Journal Templates Mandatory \[BE\]](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Belgium/specify-journal-template-mandatory) — possibly related: names Table 311 "Sales & Receivables Setup"
- [Step by Step Guide to Importing Excel Data into Business Central](../../posts/aardvarklabs-blog/2202.md) — possibly related: both name Codeunit 310 "No. Series"
- [Walkthrough - Designing a report from multiple tables](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-walktrough-designing-reports-multiple-tables) — possibly related: names Table 36 "Sales Header"
- [Why No. Series Break After Upgrading to Business Central 27 (And How to Fix It)](../../posts/sauravdhyani-com/tag-blogger-com-1999-blog-3122193036149030463-post-7075429771899937250--e4e630a6bb.md) — possibly related: both name Codeunit 310 "No. Series"

## Heads up

- warning: "Please do not use OnBeforeInsertSalesOrderHeader event, it will cause the following error" (about codeunit Sales-Quote to Order, OnBeforeInsertSalesOrderHeader)

## Context

- Features: Make Order from Sales Quote, Number Series management, No. Series lookup, Automatic document numbering, Default numbering in quotes to orders

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.
