- Home [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Getting started
- Use cases
-
API
- Object types
- Data types
-
Global constants
- Application
- ApplicationUserProfile
- ApplicationWithBatcher
- ApplicationWithParams
- BrandingSettings
- CompanyInfo
- Converter
- Directories
- Files
- HttpApiHandler
- HttpApiRequest
- ICache
- IStorage
- MailMessage
- Mailbox
- OrganisationStructure
- OrganisationStructureTree
- Portal
- PortalPageInfo
- PortalSettings
- Portals
- Process
- Processes
- ProductionSchedule
- Reminders
- Replacements
- Serial
- ServerCollection
- Service
- SignupUrlParams
- SystemCollections
- SystemCollectionsWithEvents
- SystemCollectionsWithFilterEvents
- Templater
- Translator
- UserGroups
- Users
- Watermarks
- Report
- Reports
- SR
- Work with apps
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Company data
Hierarchy
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.
Properties
Methods