Sample Scripts
Logging
Logger.log(...);
Logger.info(...);
Logger.debug(...);
Logger.warn(...);
Logger.error(...);Fetching Multiple Records from a DataSource
const records = await db.find("DataSourceName", {
filter: [
{ name: { sw: "Steve" } },
{ joinDate: { after: new Date().toISOString() } },
{ amount: { eq: 123 } },
],
limit: 20,
});Fetching a Single Record from a DataSource
Inserting a Record
Inserting Multiple Records
Duplicating a Record
Throwing a Functional Error
Calling an external REST Service
Executing SQL Queries
Awaiting for all Promises to completion
Wrong Way ❌
Right Way ✅
Sending User Notification
Sending Email
Triggering Workflow
Process Mustache Template String
Format Date
Last updated