# Session.ApplicationArea([Text]) Method
> Version: _Available or changed with runtime version 1.0._
Gets or sets the application areas for the current session.
## Syntax
```al
[ApplicationArea := ]  Session.ApplicationArea([ApplicationArea: Text])
```
> NOTE
> This method can be invoked without specifying the data type name.
## Parameters
*[Optional] ApplicationArea*
Type: ../text/text-data-type
The new application areas for the current session.
## Return Value
*[Optional] ApplicationArea*
Type: ../text/text-data-type
The application areas for the current session.
## Remarks
This method lets you hide certain user interface elements (including page fields and actions, and report request page options) based on the application area to which they belong. Controls that define these items can be tagged with one or more application areas by setting the ApplicationArea property. When the ApplicationArea method is called in a client session, only those controls that are tagged with the application areas set by the method will be appear in the user interface.
> NOTE
> Currently, this functionality is intended for the application areas that are defined in table 9178 Application Area Setup. You can define your own application areas but be aware that the implementation might change in future release.
## Related information
session-data-type
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/session/session-applicationarea-method, 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/session/session-applicationarea-method/
