Codeunit 417 Tenant Information in 28
- App
- System Application
- Namespace
- System.Environment
Versions171819202122232425262728latest
Source in 28
src/System Application/App/Environment Information/src/TenantInformation.Codeunit.al40 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace System.Environment;
/// <summary>
/// Exposes functionality to fetch attributes concerning the current tenant.
/// </summary>
codeunit 417 "Tenant Information"
{
Access = Public;
SingleInstance = true;
InherentEntitlements = X;
InherentPermissions = X;
var
TenantInformationImpl: Codeunit "Tenant Information Impl.";
/// <summary>
/// Gets the tenant ID.
/// </summary>
/// <returns>If it cannot be found, an empty string is returned.</returns>
procedure GetTenantId(): Text
begin
exit(TenantInformationImpl.GetTenantId());
end;
/// <summary>
/// Gets the tenant name.
/// </summary>
/// <returns>If it cannot be found, an empty string is returned.</returns>
procedure GetTenantDisplayName(): Text
begin
exit(TenantInformationImpl.GetTenantDisplayName());
end;
}
Procedures, 2
| Name | Parameters | Returns | Access | Obsolete |
|---|---|---|---|---|
| GetTenantId | () | Text | public | - |
| GetTenantDisplayName | () | Text | public | - |