---
id: object/codeunit/2300
type: object
title: Codeunit 2300 "Tenant License State"
summary: Codeunit 2300 "Tenant License State" in System Application (System.Environment). 13 public procedures. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - system 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: ed6631a64ed77ba9c69de3ca203618ecce73dadec973463efd5d0fc25dc342f4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Tenant%20License%20State/src/TenantLicenseState.Codeunit.al
    title: src/System Application/App/Tenant License State/src/TenantLicenseState.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: 2300
name: Tenant License State
namespace: System.Environment
app: System 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: 13
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 8
  implements: 0
---

# Codeunit 2300 "Tenant License State"

> Codeunit 2300 "Tenant License State" in System Application (System.Environment). 13 public procedures. Present since at least BC23, still in BC30.

System Application · System.Environment · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Tenant%20License%20State/src/TenantLicenseState.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Public |

## Procedures

- `GetPeriod(TenantLicenseState: Enum "Tenant License State"): Integer`: Returns the default number of days that the tenant license can be in the current state, passed as a parameter.
- `GetStartDate(): DateTime`: Gets the start date for the current license state.
- `GetEndDate(): DateTime`: Gets the end date for the current license state.
- `IsEvaluationMode(): Boolean`: Checks whether the current license state is evaluation.
- `IsTrialMode(): Boolean`: Checks whether the current license state is trial.
- `IsTrialSuspendedMode(): Boolean`: Checks whether the trial license is suspended.
- `IsTrialExtendedMode(): Boolean`: Checks whether the trial license has been extended.
- `IsTrialExtendedSuspendedMode(): Boolean`: Checks whether the trial license has been extended and is currently suspended.
- `IsPaidMode(): Boolean`: Checks whether the current license state is paid.
- `IsPaidWarningMode(): Boolean`: Checks whether the paid license is in warning mode.
- `IsPaidSuspendedMode(): Boolean`: Checks whether the paid license is suspended.
- `GetLicenseState(): Enum "Tenant License State"`: Gets the the current license state.
- `ExtendTrialLicense()`: Extends the trial license.

## 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 2301 "Tenant License State Impl."](../codeunit/2301.md) (13 calls: `ExtendTrialLicense → ExtendTrialLicense`, `GetEndDate → GetEndDate`, `GetLicenseState → GetLicenseState`, …)

## Called by

- [Codeunit 1430 "Role Center Notification Mgt."](../codeunit/1430.md) (10 calls: `GetLicenseFullyUsedDays → GetStartDate`, `GetLicenseRemainingDays → GetEndDate`, `GetTrialTotalDays → GetPeriod`, …)
- [Page 1828 "Extend Trial Wizard"](../page/1828.md) (3 calls: `ExtendTrialAction → ExtendTrialLicense`, `ExtendTrialAction → GetEndDate`, `OnOpenPage → IsTrialMode`)
- [Codeunit 9175 "User Settings Impl."](../codeunit/9175.md) (2 calls: `UpdateCurrentUsersSettings → IsEvaluationMode`, `UpdateCurrentUsersSettings → IsTrialMode`)
- [Codeunit 1518 "My Platform Notifications"](../codeunit/1518.md) (1 call: `InsertDefaultNotification → IsEvaluationMode`)
- [Codeunit 1997 "Checklist Events"](../codeunit/1997.md) (1 call: `InitializeChecklistForEvaluationCompanies → IsPaidMode`)
- [Codeunit 50 "SaaS Log In Management"](../codeunit/50.md) (1 call: `ShouldShowTermsAndConditions → IsEvaluationMode`)
- [Codeunit 7205 "CDS Int. Table. Subscriber"](../codeunit/7205.md) (1 call: `DeleteCouplingOnBeforeDeleteCompany → GetLicenseState`)
- [Page 9192 "Company Creation Wizard"](../page/9192.md) (1 call: `UpdateDataDescription → IsPaidMode`)

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