📄️ Environment
The sdk.env object provides contextual data about the execution environment of a server-side function in GridStudio. It contains key information such as the active tenant, public settings, user metadata, and optionally, session or flow context.
📄️ Function
The sdk.customFunction field allows you to programmatically call other Custom Functions from within your current function. This is particularly useful when you need to reuse logic, fetch data, or trigger actions defined in other functions—either in the same app or globally within the tenant.
📄️ Collection
The sdk.customCollection utility enables you to interact with GridStudio's custom NoSQL-style collections directly within Server SDK functions. You can list, read, create, update, and delete documents across tenant- or app-scoped collections using a consistent API.
📄️ Event
GridStudio allows you to define and emit custom events from within server-side functions. These events can be captured in your automation flows (such as AI Flows or Workflows) to trigger follow-up actions and continue the flow execution.
📄️ Store
The sdk.store utility provides a simple key-value interface for storing and retrieving small pieces of data across server-side functions. Under the hood, it uses GridStudio’s custom collection infrastructure, but abstracts away the complexity for quick, ephemeral data storage.
📄️ Method
The sdk.method utility allows you to call backend Meteor server methods directly from a Custom Function. These methods are part of GridStudio's internal API and can be used to fetch data, trigger backend logic, or access business-specific operations.
📄️ Utils
The sdk.utils object on the Server SDK offers a wide array of helper methods to support backend logic in GridStudio Custom Functions. These utilities cover encoding, decoding, role checks, QR code generation, canvas image manipulation, and more.
📄️ Lib
The sdk.lib object exposes a curated set of third-party libraries and native Node.js modules that you can use within your server-side Custom Functions in GridStudio. These libraries are pre-integrated and ready to use—eliminating the need for manual installation or configuration.