Optional Auditoptional - if provided and either ForceAuditLog is set, or the query's property settings for logging query runs are set to true, this will be used as the Audit Log Description.
Optional CacheWhen set to true, the RunQuery will first check the LocalCacheManager for cached results. If cached results exist and are still valid (based on smart cache fingerprinting), they will be returned immediately without hitting the server. This is useful for frequently-accessed, relatively-static query results.
Note: The LocalCacheManager must be initialized before this can work. For queries with CacheValidationSQL configured, the server will validate cache freshness using fingerprint comparison (maxUpdatedAt + rowCount) before returning fresh data.
false
Optional CacheOptional TTL (time-to-live) in milliseconds for cached results when CacheLocal is true. After this time, cached results will be considered stale and fresh data will be fetched. If not specified:
Optional CategoryID?: stringOptional, if provided, the query to be run will be selected to match the specified CategoryID
Optional CategoryOptional, if provided, the query to be run will be selected to match the specified Category by hierarchical path (e.g., "/MJ/AI/Agents/") or simple category name for backward compatibility
Optional Forceoptional - if set to true, the query run will ALWAYS be logged to the Audit Log, regardless of the query's property settings for logging query runs.
Optional MaxOptional maximum number of rows to return from the query. If not provided, all rows will be returned.
Optional Parameters?: Record<string, any>Optional parameters to pass to parameterized queries that use Nunjucks templates. Key-value pairs where keys match parameter names defined in QueryParameter metadata. Values will be validated and type-converted based on parameter definitions.
Optional QueryID?: stringProvide either QueryID or QueryName. If both are provided QueryName is ignored
Optional QueryProvide either QueryID or QueryName. If both are provided QueryName is ignored
Optional StartOptional - if provided, this value will be used to offset the rows returned. Used for pagination in conjunction with MaxRows.
Parameters for running a query, must provide either QueryID or QueryName. If both are provided QueryName is ignored. QueryName and CategoryPath together uniquely identify a Query, just as QueryID does. CategoryPath supports hierarchical paths (e.g., "/MJ/AI/Agents/") for navigation through nested categories.