Scripting reference
The objects and globals available to server and client scripts, one page per object, with each method's signature, result and an example.
This reference is for developers who write scripts in Servicely: triggers, UI events, script libraries, jobs, transforms and custom endpoints. Each page covers one object, lists its methods with the version they appeared in, and shows each script beside the result it returns.
Where a script runs and which globals it receives is explained in Where scripts run in the Administrator guide.
Start here
- Querying tablesHow to read records in server scripts: single lookups, simple and complex queries, iteration, empty results, batches and safe traversal.Developer
- TableMethods of the Table object, which queries a table, reads its schema and creates, counts and deletes its records in server scripts.Developer
- TableRecordMethods of the TableRecord object, which reads, sets, saves, clones and deletes one record in server scripts.Developer
- DateTimeConstructors, constants and methods of the DateTime object, which creates, compares, shifts and formats dates and times in server scripts.Developer
- HTTPMethods of HTTP, GetRequest, HttpRequestWithBody, HttpResponse and HttpResponseBinary for sending HTTP requests from server scripts.Developer
In this section
Querying tables
How to read records in server scripts: single lookups, simple and complex queries, iteration, empty results, batches and safe traversal.
Developer3 minScripting recipes
Server script recipes for attachments over HTTP and base64, and for testing a record against a condition stored on another record.
Developer2 minClient form API
Methods of current in client scripts, which read and set form fields, make them required, read-only or hidden, and show or hide layout elements.
Developer2 minRecords and queries
Table, TableRecord, fields and relations, query operators, aggregates, journals, questions and attachments.
Developer9 pagesDates and numbers
DateTime, date formatting, Duration and Period, and BigDecimal.
Developer4 pagesUsers, settings and automation
The User, ApplicationPropertyManager, Logger, Translation, RealmUtils, Workflow and Job objects.
Developer7 pagesIntegration
The Http object, MarkupConverter and HtmlUtils, and WebSocket.
Developer3 pages