This object has access system collections. It is always available as a global value in scripts:

const cu = await System.users. getCurrentUser();

Type parameters

Hierarchy

  • SystemCollections

Properties

Readonly cache

cache: ICache

Cache to temporary store data on the server.

Readonly converter

converter: Converter

File converting.

Readonly digitalSigns

digitalSigns: DigitalSigns

Digital signatures.

deprecated

Digital signatures are moved to System.signs. This property is going to be deleted.

Readonly directories

directories: Directories

Directories.

Readonly files

files: Files

Files.

Readonly lines

Live Chats.

Readonly mailbox

mailbox: Mailbox

Mailbox.

Readonly organisationStructure

organisationStructure: OrganisationStructure

Organizational chart.

Readonly portals

portals: Portals

Portals.

Readonly processes

processes: P

Processes.

Readonly productionSchedule

productionSchedule: ProductionSchedule

Business calendar.

Readonly reminders

reminders: Reminders

Reminder.

Readonly replacements

replacements: Replacements

Substitutions.

Readonly signs

signs: Signs

Digital signatures service.

Readonly storage

storage: IStorage

Long-term storage used to store any string data on the server.

Readonly templater

templater: Templater

Templater.

timezones

timezones: TTimezones

Time zones.

Readonly userGroups

userGroups: UserGroups

User groups.

Readonly users

users: Users

Users.

Readonly watermark

watermark: Watermarks

Service for working with watermarks.

Methods

getBaseUrl

  • getBaseUrl(): string
  • 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

getLanguages

  • Get languages available in the system.

    Returns Promise<Language[]>

    An array of objects with information about available languages.