web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Get Client Type in AL

Teddy Herryanto (That NAV Guy) Profile Picture Teddy Herryanto (Th... 14,209 Super User 2025 Season 2

If you want to know, if a user accessing BC from a device, desktop, or API, you can use the Client Type.

Let’s say for an example, you want to limit user modifying from from tablet or phone, you can use CurrentClientType method.

field(12; "Item No."; Code[50])
{
    Caption = 'Item No.';
    DataClassification = CustomerContent;
    trigger OnValidate()
    begin
      if CurrentClientType IN [ClientType::Phone, ClientType::Tablet] then
      Error('Modification is not allowed using phone or table.');
    end;
}

This was originally posted here.

Comments

*This post is locked for comments