
We’ve rolled out a series of improvements designed to make your SmartSuite scripting experience more intuitive and powerful. This update boosts usability and security while adding several highly requested functions for handling files, navigation, external requests, and UI styling.
Key Highlights
- Hydrated Records Option: Retrieve extra record details effortlessly using the hydrated flag on GET/List requests.
- Secure Redirection: A new function now lets your script safely send users to specific records, tables, or solutions in one simple step.
- File Download Capability: Trigger secure downloads of blob data directly from your scripts with the new download_data() function.
- Proxy Fetch Support: Bypass common CORS issues by routing external HTTP requests through a smart proxy service – complete with an easy-to-manage URL allowlist.
- Grid Selections: Quickly obtain the IDs of records selected in a grid widget using the get_grid_selections() method.
- CSS Injection: Enhance your script interfaces by injecting basic CSS into iframes to ensure a consistent look and feel.
How It Works
- Developers can now leverage a set of new SDK methods—such as download_data(), redirect_to(), get_file(), and get_grid_selections()—to perform file downloads, secure navigation, and data retrieval with a simple postMessage to the SmartSuite host.
- When using download_data(), the script encodes the file’s data and securely triggers a download without redirecting the user away from the current tab.
- The redirect_to() function safely hands off navigation tasks to the SmartSuite host, ensuring that only valid, permitted destinations are used.
- For external HTTP calls, proxyFetch routes your request through our secure server-side endpoint, while a dedicated UI allows you to configure a URL allowlist for added safety.
- Lastly, injecting basic CSS into iframes helps maintain consistent styling across components embedded in your scripts, making your customizations look great every time.
This comprehensive update is aimed at simplifying your development process and enhancing overall script functionality in SmartSuite. Enjoy faster, more secure, and visually cohesive scripting!