Client Scripts Limitations
Client Side Scripts in the platform operate in a controlled environment with certain limitations to ensure stability, security, and predictable performance.
Limitations
-
No External REST Calls: Scripts cannot perform external REST or HTTP requests. They are restricted to the built-in SDK functions provided by the platform.
-
Maximum Execution Time: Each script execution has a time limit of 15 seconds. If the script exceeds this duration, it will be automatically terminated.
-
Single Script Execution: Only one script can be executed at a time in a given context. Scripts are not run in parallel to prevent race conditions and maintain consistent state.
-
Limited Data Access: Scripts have access only to the data that is currently loaded and available on the page — specifically, the visible datasets. Pagination or additional data fetching beyond what is already loaded is not supported within the script environment.
-
Layout instance constraints: Access to, and modification of, data is performed by referencing dataset attributes such as name or identifier. When datasets are queried by name, the returned results are constrained to the scope of the current layout instance.
Purpose of Limitations
These constraints are designed to:
- Prevent long-running or blocking operations from degrading performance.
- Maintain data consistency across user sessions.
- Ensure scripts run securely within the browser context without external dependencies.