Overview of the SuiteScript Optimization Sample
mainThis project demonstrates a caching mechanism for retrieving and storing state-specific shipping rates in NetSuite Sales Orders to optimize performance. It uses a combination of a User Event script to fetch data from an external API and a Suitelet to provide a management UI.
Key components:
- sl_cacheManager.js: A Suitelet that displays current cached shipping rates and provides a button to purge the cache.
- ue_shippingRates.js: A User Event script that fetches state-specific shipping rates from an external API and updates the cache during Sales Order operations.