Meet the codeunits: ServerSetting

Codeunit 6723 is fairly simple, it exposes functionality to fetch application server settings from the server which hosts the current tenant. These functions are great if you have code that both used on-premises and on AppSource and you have a need to check the capabilities of the server.

The source can be found here:
https://github.com/microsoft/ALAppExtensions/tree/master/Modules/System/Server%20Settings

GetEnableSaaSExtensionInstallSetting(): Boolean
Returns the value of EnableSaasExtensionInstallConfigSetting. If extensions from AppSource can be installed on this tenant.
GetIsSaasExcelAddinEnabled(): Boolean
Checks whether Excel add-in is enabled on the server.
GetApiServicesEnabled(): Boolean
Checks whether the API Services are enabled.
GetApiSubscriptionsEnabled(): Boolean
Checks whether the API subscriptions are enabled.