{"title":"SessionSettings.LanguageId([Integer]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/sessionsettings/sessionsettings-languageid-method/","by":"JOP-AL","license":"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/sessionsettings/sessionsettings-languageid-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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/sessionsettings/sessionsettings-languageid-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Gets or sets the language ID property in a SessionSettings object.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"SessionSettings.LanguageId([Integer]) Method","slug":"sessionsettingslanguageidinteger-method","at":0,"chars":1752},{"level":2,"title":"Syntax","slug":"syntax","at":174,"chars":157},{"level":2,"title":"Parameters","slug":"parameters","at":331,"chars":398},{"level":2,"title":"Return Value","slug":"return-value","at":729,"chars":134},{"level":2,"title":"Remarks","slug":"remarks","at":863,"chars":147},{"level":2,"title":"Example","slug":"example","at":1010,"chars":599},{"level":2,"title":"Related information","slug":"related-information","at":1609,"chars":143}],"text":"# SessionSettings.LanguageId([Integer]) Method\n> Version: _Available or changed with runtime version 1.0._\nGets or sets the language ID property in a SessionSettings object.\n## Syntax\n```al\n[LanguageId := ]  SessionSettings.LanguageId([NewLanguageId: Integer])\n```\n> NOTE\n> This method can be invoked using property access syntax.\n## Parameters\nSessionSettings\nType: sessionsettings-data-type\nAn instance of the sessionsettings-data-type data type.\n*[Optional] NewLanguageId*\nType: ../integer/integer-data-type\nSpecifies the language ID to set in the SessionSettings object. The value must be a valid Windows language ID, which is typically a 4-digit value such as 1033 for English or 1030 for Danish. The default value is 1033.\n## Return Value\n*[Optional] LanguageId*\nType: ../integer/integer-data-type\nThe language ID that is set in the SessionSettings object.\n## Remarks\nThe langauge ID in the SessionSettings object corresponds to the Language ID field in the system table 2000000073 User Personalization.\n## Example\nThis example creates a SessionSettings object that is populated with the current client user's personalization data, and then uses the LanguageId method to change the language ID to '1030'. Finally, the RequestSessionUpdate method sends a request to the client to abandon the current client session and start a new session that uses the new language. This example requires a SessionSettings data type variable.\n```al\nvar\n  MySessionSettings : SessionSettings;\nbegin\n  MySessionSettings.Init;\n  MySessionSettings.LanguageId(1030);\n  MySessionSettings.RequestSessionUpdate(false);\nend;\n```\n## Related information\nsessionsettings-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}