Hierarchy
- CompanyInfo
Properties
Readonly code
Company's unique code.
Example:
// For SaaS Standard usually an alphanumeric code specified in the company's url is returned (for example, `abcdefg123hijk`)
//
// For the On-Premises edition the default company code is `head`
const companyCode = System.company.code;
Readonly url
Get the company’s base URL.
Example:
// For SaaS Standard, it will return`https://abcdefg123hijk.elma365.com`,
// where`abcdefg123hijk` is the company code, `elma365.ru` is the SaaS domain
//
// If the company has an alias, the URL will display
// the alias instead of the company code, for example `https://mycompany.elma365.com`
//
//
// For the On-Premises version, `https://mycompany.com` is returned,
// where `mycompany.com` is the domain name, specified in the On-Premises configuration settings
const baseUrl = System.company.url;
Methods
getLanguages
-
Get languages available in the system.
Example:
const langs = await System.company.getLanguages();
Returns Promise<Readonly<Language>[]>
Array of objects with information about available languages.
Company data