Skip to content

Sys API

Sys is the global namespace through which app code reaches platform functionality: dates, text, mail, files, AI, users, processes, and more. You call it from any script in Lowgile Studio, for example Sys.Log.info('Order saved') or Sys.Date.format(new Date(), 'dd.MM.yyyy').

Sys is not the same object everywhere. Lowgile gives your code the Sys that matches where the code runs, and each one contains only what works there.

Each entry in this reference states where you can call it:

AvailabilityWhere you can call it
ServerServer-side code only: server methods, Process scripts, Triggers, Service Providers.
ClientClient-side code only: Screen code and client methods.
BothServer-side and client-side code, but not shared code.
EverywhereServer-side, client-side and shared code. Shared code is code Lowgile compiles for both sides, such as Entity methods with availability serverAndClient or calculation.

A member’s availability is the broadest availability of its functions. Some members, such as Sys.Text and Sys.User, have more functions on one side than in shared code, so check each function’s own availability line.

MemberPurposeAvailability
Sys.AiCall AI models, including structured output, and manage AI chat sessions.Server
Sys.AppControl the running app in the browser.Client
Sys.AuditRead and write audit trail entries.Both
Sys.AuthCreate file access tokens.Server
Sys.BankingExchange banking data through EBICS and ISO 20022.Server
Sys.CryptoHash, encrypt, sign and generate keys.Server
Sys.DataConvert, copy and compare data objects.Everywhere
Sys.DateFormat dates in the current language, with date-fns included.Everywhere
Sys.DbAccess the database connection behind a Server Data Store directly.Server
Sys.DebugSerialize objects for inspection.Both
Sys.ExtReach Extension exports (not functional yet).Server
Sys.FilesManage stored files and file access tokens.Server
Sys.FsRead and write files in the app’s working directory.Server
Sys.GoogleMapsCall Google Maps services.Server
Sys.IdbStore data in the browser’s IndexedDB.Client
Sys.ImageRead, convert and transform images.Server
Sys.LanguageRead and change the current language.Everywhere
Sys.LayoutReact to the screen size and layout.Client
Sys.LogWrite entries to the server log.Server
Sys.MailSend and receive email.Server
Sys.MathRounding and other numeric helpers.Everywhere
Sys.MicrosoftCall Microsoft Graph and Azure services.Server
Sys.PdfCreate, read and change PDF documents.Server
Sys.ProcessWork with Process instances and User Tasks.Both
Sys.RateLimitingRun lists of async tasks with concurrency and rate limits.Everywhere
Sys.ScreenNavigate between Screens and open dialogs.Client
Sys.SftpTransfer files over SFTP.Server
Sys.SoapCall SOAP services.Server
Sys.StorageStore values in the browser’s local storage and IndexedDB.Client
Sys.SystemInformation about the running system.Everywhere
Sys.TextConvert, format and generate text.Everywhere
Sys.TypesShared types used across the API.Everywhere
Sys.UserThe current user, and user and role checks.Everywhere
Sys.VersionThe running platform version.Everywhere
Sys.XlsCreate and read Excel workbooks.Server
Sys.ZipCreate and extract ZIP archives.Server
Utilities and bundled librariesSys.wait and the third-party libraries Lowgile exposes: Ramda, HttpClient, getHttpClient, Https, Path, Xml, QrCode, Confetti, RustLib.Varies