Codeunit 2502 Extension License Impl
src/System Application/App/Extension Management/src/ExtensionLicenseImpl.Codeunit.al31 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.Apps;codeunit 2502 "Extension License Impl"{ Access = Internal; InherentEntitlements = X; InherentPermissions = X; SingleInstance = false; procedure LicenseCount(ProductId: Text; SkuId: Text): Integer begin exit(GetIsvLicenseCount(ProductId, SkuId, '')); end; procedure GetIsvLicenseCount(ProductId: Text; SkuId: Text; IsvPrefix: Text): Integer var DotNetExtensionLicenseInformationProvider: DotNet ExtensionLicenseInformationProvider; begin if (ProductId = '') or (SkuId = '') then exit(-1); exit(DotNetExtensionLicenseInformationProvider.ALLicenseCount(ProductId, SkuId, IsvPrefix)); end;}