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. For more information, see System.GuiAllowed() Method.
See also
System.GuiAllowed() Method
Get Started with AL
Developing Extensions
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈