ClientType option type

Version: Available or changed with runtime version 1.0.

Represents the type of the client executing the operation.

Members

MemberDescription
BackgroundA background session.
ChildSessionA child session.
DesktopA desktop client.
ManagementA management client.
NASA NAS client.
ODataA NAS client.
PhoneMicrosoft Dynamics Business Central Phone client.
SOAPA SOAP client.
TabletMicrosoft Dynamics Business Central Tablet client.
WebMicrosoft Dynamics Business Central Web client.
WindowsMicrosoft Dynamics Business Central Windows client.
CurrentMicrosoft Dynamics Business Central Windows client.
DefaultThe default client.
ODataV4A ODataV4 client.
ApiAn API client.
TeamsMicrosoft 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. For more information, see System.GuiAllowed() Method.

System.GuiAllowed() Method
Get Started with AL
Developing Extensions