In this guide, I’ll demonstrate how to integrate the Zod library, a TypeScript-first schema declaration library, into your SuiteCloud project for runtime data validation. Zod is a powerful library that ensures data accuracy within your SuiteCloud projects. Here’s what you’ll learn: Why data validation is invaluable for RESTlets. Zod’s magic: effortless runtime validation. How to leverage TypeScript for improved code quality. Step-by-step instructions… Continue reading Enhancing SuiteScript with Third-Party Libraries: TypeScript, Zod, and Webpack
Category:
Integrating Third-Party Libraries in SuiteScript 2.1: A Detailed Guide
Integrating Third-Party Libraries in SuiteScript 2.1: A Detailed Guide As SuiteScript developers, we often seek to extend the native capabilities of NetSuite with third-party libraries. This technical deep dive explores the practical aspects of integrating these libraries into SuiteCloud projects. When considering library integration, it’s essential to understand the different types of libraries available. Each… Continue reading Integrating Third-Party Libraries in SuiteScript 2.1: A Detailed Guide
Resolving Compatibility Challenges with Shims and Polyfills: A Quick Introduction
For libraries that aren’t readily compatible with SuiteScript or are outright incompatible, developers need to proceed with caution. Libraries originally designed for Node.js or browser environments may not work seamlessly with SuiteScript due to differences in the available APIs and the runtime environment. To navigate and address these compatibility issues where possible: Understand the dependencies:… Continue reading Resolving Compatibility Challenges with Shims and Polyfills: A Quick Introduction
SuiteScript 2.1: Compatible Build-Time and Runtime Libraries
For developers working within the SuiteScript environment, it is most efficient to start with a curated list of known compatible third-party libraries. These libraries have been tested and verified to work seamlessly within the SuiteScript ecosystem, ensuring that developers can integrate them into their projects with confidence. By choosing from a vetted selection, developers can… Continue reading SuiteScript 2.1: Compatible Build-Time and Runtime Libraries
Matrix Transformations in Three.js
In Three.js, matrices are used to encode 3D transformations—including translations (position), rotations, and scaling. Every Object3D instance has a matrix property that stores its transformation state. Understanding how to work with these matrices is essential for precise control of objects in a 3D scene. Updating Transformations There are two main ways to update an object’s… Continue reading Matrix Transformations in Three.js
Identify Shipping Carrier Based on the Number of Characters or Digits of its Tracking Numbers
Each shipping carrier applies a unique logic in generating its own tracking number. It is the same concept in generating check-digits in barcodes to validate it. However, this article is not intended to tell whether the tracking number is valid or not based on its auto generated check digit. Instead, it simply aims to identify… Continue reading Identify Shipping Carrier Based on the Number of Characters or Digits of its Tracking Numbers
Efficient Transaction Duplication in NetSuite Using SuiteScript 2.1’s record.copy.promise Method
As an administrator, you may frequently encounter scenarios where you need to duplicate existing transactions—such as creating repeat invoices for loyal customers, replicating purchase orders, or preparing test data in your sandbox. Doing this manually can be time-consuming and error prone. Fortunately, SuiteScript 2.1 offers a solution: the record.copy.promise method. This method allows you to… Continue reading Efficient Transaction Duplication in NetSuite Using SuiteScript 2.1’s record.copy.promise Method
Generating HAR File on Edge
Press F12, Ctrl+Shift+I or go to More tools>Developer tools. The following window will open: Go to settings by clicking the Settings button or pressing F1. Under Global settings check Auto-open Dev tools for popups. Go to Network Tab, and Click the Clear button to clear out any existing logs from the Network tab. Press the play button at the top left to start recording. Reproduce the issue. After you have… Continue reading Generating HAR File on Edge
Automating Email Notifications in NetSuite with Saved Searches
Saved searches are more than just reporting tools. When combined with scheduled email delivery, they become automated communication engines that push critical information directly into your team’s inboxes. Instead of relying on employees to pull reports, NetSuite can push the right data to the right people at the right time. Example: Sending Expiring Quotes to… Continue reading Automating Email Notifications in NetSuite with Saved Searches
Substepping: Reducing Character Tunneling
Physics simulations in real-time 3D experiences depend on discrete time steps to update motion, collisions, and forces. When objects move too far between frames—due to frame drops, high velocities, or gravity—they may pass through solid surfaces without registering a collision. This issue is known as tunneling. Substepping addresses this by splitting each frame’s physics update… Continue reading Substepping: Reducing Character Tunneling