Codeunit "Client Type Management"
ID 4030
Namespace: System.Environment
Exposes functionality to fetch the client type that the user is currently using.
Properties
| Name | Value |
|---|---|
| Access | Public |
| SingleInstance | True |
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
GetCurrentClientType
Gets the current type of the client being used by the caller, e.g. Phone, Web, Tablet etc.
procedure GetCurrentClientType(): ClientType
Returns
| Type | Description |
|---|---|
| ClientType |
The client type of the current session. |
Examples
Example
IF ClientTypeManagement.GetCurrentClientType IN [CLIENTTYPE::xxx, CLIENTTYPE::yyy] THEN
Remarks
Use the GetCurrentClientType wrapper method when you want to test a flow on a different type of client.