CFL Functions

  • 2 minutes to read

Provides general utility functions for text manipulation, number formatting, tenant/company identification, and year validation.

Object Definition

Object TypeCodeunit
Object ID2098011
Object NameCFL Functions

Procedures

Name Description
CFLGetYear(Code[4]): Code[4] Validates and normalizes a year value to a 4-digit format.
CFLIsAdmin(): Boolean Checks if the current user is the administrator.
CFLIsDefaultTenant(): Boolean Checks if the current tenant is the default tenant.
CFLIsMgmtTenant(): Boolean Checks if the current tenant is a management tenant.
CFLLeftPad(text[1024]; integer; Char): text[1024] Pads a string on the left side with a specified character to reach a desired length.
CFLMgmtCompany(): Text Returns the name of the management company.
CFLMgmtTenantId(): Text Gets the management tenant ID based on the current tenant ID.
CFLTruncate(text; integer): text Truncates a string to a specified maximum length.
FormatNumber(Decimal; Integer; Integer): Text[30] Formats a decimal number with specified minimum and maximum decimal places.
IsMgmtCompany(): boolean Checks if the current company is the management company.

Deprecated Procedures

Name Description
CFLCheckEnterpristeVATNo(Text[50]; Text[20]; Code[10]) Checks enterprise VAT number (obsolete).
CFLGetAnnualAccounts(Text[50]; Code[10]) Gets annual accounts information (obsolete).
CFLGetPublicationsBelgianOfficalJournal(Text[50]; Code[10]) Gets publications from the Belgian Official Journal (obsolete).
CFLLinkCentralEnterpriseDatabase(Text[50]; Code[10]) Links to the Central Enterprise Database (obsolete).
CFLLinkTrendsTop(Text[50]; Code[10]) Links to TrendsTop information (obsolete).