# ClientType option type
> Version: _Available or changed with runtime version 1.0._
Represents the type of the client executing the operation.
## Members
Member|Description
Background|A background session.
ChildSession|A child session.
Desktop|A desktop client.
Management|A management client.
NAS|A NAS client.
OData|A NAS client.
Phone|Microsoft Dynamics Business Central Phone client.
SOAP|A SOAP client.
Tablet|Microsoft Dynamics Business Central Tablet client.
Web|Microsoft Dynamics Business Central Web client.
Windows|Microsoft Dynamics Business Central Windows client.
Current|Microsoft Dynamics Business Central Windows client.
Default|The default client.
ODataV4|A ODataV4 client.
Api|An API client.
Teams|Microsoft Teams client.
## Remarks
Some of these client types don't allow AL code that interacts with the user, such as using the methods Dialog.Open, Dialog.Update, Window.Open, Window.Update, or System.Error.
If the same codeunit needs to run both in the UI and also in the background (in a scheduled task or with a job queue entry), or in a web service call (SOAP/OData/API), then use `if GuiAllowed() then` calls to encapsulate AL code that interacts with the user. See ../system/system-guiallowed-method.
## Related information
../system/system-guiallowed-method
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/clienttype/clienttype-option, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/clienttype/clienttype-option/
