Table "CodeUnit Metadata"
Virtual table that provides metadata information about codeunits in the system.
Remarks
This table exposes metadata about codeunits including their properties, subtype, permissions, and application associations. Essential for reflection scenarios, development tools, and runtime analysis of codeunit characteristics. Used by the platform to determine codeunit capabilities such as single instance behavior, test classifications, and security permissions. The table provides read-only access to codeunit metadata across all installed applications.
Properties
| Name | Value |
|---|---|
| DataPerCompany | False |
| Scope | Cloud |
| InherentPermissions | rX |
Fields
| Name | Type | Description |
|---|---|---|
| ID | Integer | The unique identifier of the codeunit. |
| Name | Text[30] | The name of the codeunit as defined in AL code. |
| TableNo | Integer | The table number if this codeunit is associated with a specific table. |
| SingleInstance | Boolean | Indicates whether this codeunit is defined as a single instance codeunit. |
| SubType | Option | The subtype classification of the codeunit (Normal, Test, TestRunner, or Upgrade). |
| "App ID" | Guid | The application ID that contains this codeunit. |
| InherentPermissions | Text[5] | The inherent permissions defined for this codeunit. |
| InherentEntitlements | Text[5] | The inherent entitlements defined for this codeunit. |
| TestType | Option | The test type classification when this is a test codeunit. |
| RequiredTestIsolation | Option | |
| "AL Namespace" | Text[500] | The AL namespace of the object. |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemRowVersion | BigInteger |