Codeunit 417 Tenant Information in 26

App
System Application
Namespace
System.Environment

Procedures, 2

Versions171819202122232425262728latest

Source242526272829

Source in 26

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

NameParametersReturnsAccessObsolete
GetTenantId()Textpublic-
GetTenantDisplayName()Textpublic-