Codeunit "Azure AD Tenant"
Exposes functionality to fetch attributes concerning the current tenant.
Properties
Name | Value |
---|---|
Access | Public |
SingleInstance | True |
InherentEntitlements | X |
InherentPermissions | X |
Methods
GetAadTenantId
Gets the Microsoft Entra tenant ID.
procedure GetAadTenantId(): Text
Returns
Type | Description |
---|---|
Text |
If the Entra tenant ID is a valid GUID, it will be returned in lowercase format and without brackets or parentheses (as per RFC4122 section 3), such as "f81d4fae-7dec-11d0-a765-00a0c91e6bf6". If it cannot be found, an empty string is returned. |
GetAadTenantDomainName
Gets the Microsoft Entra tenant domain name. If the Microsoft Graph API cannot be reached, the error is displayed.
procedure GetAadTenantDomainName(): Text
Returns
Type | Description |
---|---|
Text |
The Microsoft Entra tenant Domain Name. |
GetCountryLetterCode
Gets the current Microsoft Entra tenant registered country letter code. Visit Microsoft Admin Cententer to view or edit Organizational Information. If the Microsoft Graph API cannot be reached, the error is displayed.
procedure GetCountryLetterCode(): Code[2]
Returns
Type | Description |
---|---|
Code[2] |
Country or region abbreviation for the organization in ISO 3166-2 format. |
GetPreferredLanguage
Gets the current Microsoft Entra tenant registered preferred language. Visit Microsoft Admin Cententer to view or edit Organizational Information. If the Microsoft Graph API cannot be reached, the error is displayed.
procedure GetPreferredLanguage(): Code[2]
Returns
Type | Description |
---|---|
Code[2] |
The preferred language for the organization. Should follow ISO 639-1 Code; for example, en. |