The Codeunit Metadata virtual table (ID 2000000137) contains information about codeunits in the database. The following table describes the fields in the Codeunit Metadata virtual table.

Field Description

ID

The ID of the codeunit object.

Name

Specifies the name of the codeunit object.

TableNo

Specifies the ID of the source table object, if any.

SingleInstance

Specifies whether a single instance of the codeunit and codeunit variables are instantiated.

SubType

Specifies whether the codeunit acts as a normal, test, test runner, or upgrade codeunit.

The fields in the virtual table correspond to properties on the codeunit objects. For more information, see Codeunit Properties.

To access and view the Codeunit Metadata virtual table, you must create a tabular-type page. For more information, see How to: Create a Page to View a Virtual Table

See Also