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

# Codeunit 1400 "DocumentNoVisibility"

> Codeunit 1400 "DocumentNoVisibility" in Base Application (Microsoft.Utilities). 20 public procedures, 14 events. Present since at least BC23, still in BC30, changed in BC24-25, BC27-29.

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

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |

## Events published

- `OnBeforeForceShowNoSeriesForDocNo(NoSeriesCode: Code[20]; var DocNoVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeSalesDocumentNoIsVisible(DocType: Option; DocNo: Code[20]; var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforePurchaseDocumentNoIsVisible(DocType: Option; DocNo: Code[20]; var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeTransferOrderNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeCustomerNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeVendorNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeItemNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeFixedAssetNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeEmployeeNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeBankAccountNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResourceNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeJobNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeContactNoIsVisible(var IsVisible: Boolean; var IsHandled: Boolean)` (integration)
- `OnDeterminePurchaseSeriesNoOnElseDocType(DocType: Option Quote,"Order",Invoice,"Credit Memo","Blanket Order","Return Order"; var ReturnValue: Code[20]; var IsHandled: Boolean)` (integration)

## Procedures

- `ClearState()`
- `SalesDocumentNoIsVisible(DocType: Option Quote,"Order",Invoice,"Credit Memo","Blanket Order","Return Order",Reminder,FinChMemo; DocNo: Code[20]): Boolean`
- `PurchaseDocumentNoIsVisible(DocType: Option Quote,"Order",Invoice,"Credit Memo","Blanket Order","Return Order"; DocNo: Code[20]): Boolean`
- `TransferOrderNoIsVisible(): Boolean`
- `CustomerNoIsVisible(): Boolean`
- `VendorNoIsVisible(): Boolean`
- `ItemNoIsVisible(): Boolean`
- `FixedAssetNoIsVisible(): Boolean`
- `EmployeeNoIsVisible(): Boolean`
- `BankAccountNoIsVisible(): Boolean`
- `ResourceNoIsVisible(): Boolean`
- `JobNoIsVisible(): Boolean`
- `ContactNoIsVisible(): Boolean`
- `CustomerNoSeriesIsDefault(): Boolean`
- `VendorNoSeriesIsDefault(): Boolean`
- `ItemNoSeriesIsDefault(): Boolean`
- `TransferOrderNoSeriesIsDefault(): Boolean`
- `FixedAssetNoSeriesIsDefault(): Boolean`
- `EmployeeNoSeriesIsDefault(): Boolean`
- `ForceShowNoSeriesForDocNo(NoSeriesCode: Code[20]): Boolean`

Plus 12 local procedures.

## 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 308 "No. Series - Batch"](../codeunit/308.md) (1 call: `ForceShowNoSeriesForDocNo → GetNextNo`)

## Called by

- [Codeunit 6900 "Expense Doc No Visibility"](../codeunit/6900.md) (3 calls: `ExpenseDocumentNoIsVisible → ForceShowNoSeriesForDocNo`, `ExpenseReportDocumentNoIsVisible → ForceShowNoSeriesForDocNo`, `ExpenseUserNoIsVisible → ForceShowNoSeriesForDocNo`)
- [Codeunit 6477 "Serv. Document No. Visibility"](../codeunit/6477.md) (2 calls: `ServiceDocumentNoIsVisible → ForceShowNoSeriesForDocNo`, `ServiceItemNoIsVisible → ForceShowNoSeriesForDocNo`)
- [Page 21 "Customer Card"](../page/21.md) (2 calls: `OnNewRecord → CustomerNoSeriesIsDefault`, `OnOpenPageFunc → CustomerNoIsVisible`)
- [Page 26 "Vendor Card"](../page/26.md) (2 calls: `OnNewRecord → VendorNoSeriesIsDefault`, `SetNoFieldVisible → VendorNoIsVisible`)
- [Page 30 "Item Card"](../page/30.md) (2 calls: `OnNewRec → ItemNoSeriesIsDefault`, `SetNoFieldVisible → ItemNoIsVisible`)
- [Page 5200 "Employee Card"](../page/5200.md) (2 calls: `OnNewRecord → EmployeeNoSeriesIsDefault`, `SetNoFieldVisible → EmployeeNoIsVisible`)
- [Page 370 "Bank Account Card"](../page/370.md) (1 call: `SetNoFieldVisible → BankAccountNoIsVisible`)
- [Page 41 "Sales Quote"](../page/41.md) (1 call: `SetDocNoVisible → SalesDocumentNoIsVisible`)
- [Page 42 "Sales Order"](../page/42.md) (1 call: `SetDocNoVisible → SalesDocumentNoIsVisible`)
- [Page 43 "Sales Invoice"](../page/43.md) (1 call: `SetDocNoVisible → SalesDocumentNoIsVisible`)
- [Page 434 "Reminder"](../page/434.md) (1 call: `SetDocNoVisible → SalesDocumentNoIsVisible`)
- [Page 44 "Sales Credit Memo"](../page/44.md) (1 call: `SetDocNoVisible → SalesDocumentNoIsVisible`)
- [Page 446 "Finance Charge Memo"](../page/446.md) (1 call: `SetDocNoVisible → SalesDocumentNoIsVisible`)
- [Page 49 "Purchase Quote"](../page/49.md) (1 call: `SetDocNoVisible → PurchaseDocumentNoIsVisible`)
- [Page 50 "Purchase Order"](../page/50.md) (1 call: `SetDocNoVisible → PurchaseDocumentNoIsVisible`)
- [Page 5050 "Contact Card"](../page/5050.md) (1 call: `SetNoFieldVisible → ContactNoIsVisible`)
- [Page 507 "Blanket Sales Order"](../page/507.md) (1 call: `SetDocNoVisible → SalesDocumentNoIsVisible`)
- [Page 509 "Blanket Purchase Order"](../page/509.md) (1 call: `SetDocNoVisible → PurchaseDocumentNoIsVisible`)
- [Page 51 "Purchase Invoice"](../page/51.md) (1 call: `SetDocNoVisible → PurchaseDocumentNoIsVisible`)
- [Page 5177 "Job Archive Card"](../page/5177.md) (1 call: `SetNoFieldVisible → JobNoIsVisible`)
- [Page 52 "Purchase Credit Memo"](../page/52.md) (1 call: `SetDocNoVisible → PurchaseDocumentNoIsVisible`)
- [Page 5600 "Fixed Asset Card"](../page/5600.md) (1 call: `SetNoFieldVisible → FixedAssetNoIsVisible`)
- [Page 5740 "Transfer Order"](../page/5740.md) (1 call: `SetDocNoVisible → TransferOrderNoIsVisible`)
- [Page 6630 "Sales Return Order"](../page/6630.md) (1 call: `SetDocNoVisible → SalesDocumentNoIsVisible`)
- [Page 6640 "Purchase Return Order"](../page/6640.md) (1 call: `SetDocNoVisible → PurchaseDocumentNoIsVisible`)
- [Page 76 "Resource Card"](../page/76.md) (1 call: `SetNoFieldVisible → ResourceNoIsVisible`)
- [Page 88 "Job Card"](../page/88.md) (1 call: `SetNoFieldVisible → JobNoIsVisible`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, BC27-29

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