Codeunit WSB_EnvironmentDetection¶
Exposes procedure to identify/detect environment subtypes of Business Central environments.
Properties¶
Name | Value |
---|---|
Access | Public |
Methods¶
wgFncGetCurrentEnvironmentSubtype¶
Gets the environment subtype of the current Business Central environment.
Returns¶
Type | Description |
---|---|
Enum WSB_EnvironmentSubtype |
The environment subtype. |
wgFncGetCurrentEnvironmentType¶
Gets the environment type of the current Business Central environment.
Returns¶
Type | Description |
---|---|
Enum Environment Type |
The environment type. |
wgFncGetEnvironmentSubtype¶
Gets the environment subtype for an environment with the specified type and name.
Parameters¶
Type | Name | Description |
---|---|---|
Enum "Environment Type" |
pEnvironmentType |
The type of the environment. |
Text |
pEnvironmentName |
The name of the environment. |
Returns¶
Type | Description |
---|---|
Enum WSB_EnvironmentSubtype |
The environment's subtype. |
wgFncRefreshCurrentEnvironmentSubtype¶
Determine the subtype of the current environment again and store it in the environment subtype cache.
Returns¶
Type | Description |
---|---|
Enum WSB_EnvironmentSubtype |
The environment subtype of the current environment. |
wgFncResetToDefaultEnvironmentSubtypeConfigurations¶
Resets the environment subtype configurations/definitions to the defaults.
wlEvpOnAfterRefreshCurrentEnvironmentSubtype¶
Allows to hook into the moment right after the environment subtype of the current environment is updated.
Parameters¶
Type | Name | Description |
---|---|---|
Enum "WSB_EnvironmentSubtype" |
pEnvironmentSubtype |
The environment subtype of the current environment. |
wlEvpOnBeforeValidateEnvironmentSubtype¶
Allows to hook into the moment right before the validation of the "EnvironmentSubtype" field of a WSB_EnvironmentSubtype record.
Parameters¶
Type | Name | Description |
---|---|---|
Record "WSB_EnvironmentSubtype" |
pRecWSB_EnvironmentSubtype |
The record. |
Boolean |
vIsHandled |
Set this parameter to true if you would like your extension to handle the validation for this scenario. |