Type parameters
-
P: Processes
Hierarchy
- SystemCollections
Properties
Readonly cache
Cache to temporary store data on the server.
Readonly converter
File converting.
Readonly digitalSigns
Digital signatures.
Readonly directories
Directories.
Readonly files
Files.
Readonly lines
Live Chats.
Readonly mailbox
Mailbox.
Readonly organisationStructure
Organizational chart.
Readonly portals
Portals.
Readonly processes
Processes.
Readonly productionSchedule
Business calendar.
Readonly reminders
Reminder.
Readonly replacements
Substitutions.
Readonly signs
Digital signatures service.
Readonly storage
Long-term storage used to store any string data on the server.
Readonly templater
Templater.
timezones
Time zones.
Readonly userGroups
User groups.
Readonly users
Users.
Readonly watermark
Service for working with watermarks.
Methods
getBaseUrl
-
Get the company’s base URL.
Example for SaaS (for the cloud):
// Returns `https://abcdefg123hijk.elma365.eu` // where `abcdefg123hijk` is the company’s name and `elma365.eu` is the SaaS domain const baseUrl = system. getBaseUrl()
- Example for On-Premises:
// Returns `http://mycompany.com` // where `mycompany.com` is the domain name specified in the On-Premises configuration settings const baseUrl = system. getBaseUrl()
Returns string
- Example for On-Premises:
getLanguages
-
Get languages available in the system.
Returns Promise<Language[]>
An array of objects with information about available languages.
System object
This object has access system collections. It is always available as a global value in scripts:
const cu = await System.users. getCurrentUser();