The requirement was to show abbreviated values for the shipping item label values sourced from the NetSuite side in a React JS web application. For this, I created a map object and stored the original names and abbreviations as key-value pairs. Used a map function to replace the values in the data object before rendering.… Continue reading How to use a mapping object to replace values in a data array of objects
Author: Derin Jose
How to fetch saved search data with the title
Recently, I worked on a single-page application(SPA) for rendering saved search data from NetSuite. The client wanted to reuse the application for multiple saved searches. So, the app was designed with a search internal ID as a URL parameter and the data was fetched using the ID. However, the client also wanted to show the… Continue reading How to fetch saved search data with the title
HTTPS GET vs POST for a Portal to NetSuite data sync API
The choice between using HTTPS GET or POST for a data sync API between NetSuite and portal storage depends on the specific requirements and use case of the application. GET requests should be used for retrieving data from the server(NetSuite records), and they can be cached and bookmarked. However, they have limitations on the amount… Continue reading HTTPS GET vs POST for a Portal to NetSuite data sync API
Change date format in a NetSuite saved search result column
In NetSuite, the TO_CHAR() function can be used to convert a date object into a text representation of it. Here are some examples of date/time format values that can be used with TO_CHAR(): ‘YYYY’: 4-digit year‘IY’ or ‘IYYY’: ISO Year‘M’: Month2‘DL’: Long version of the date including day of the week, month, day, and year‘YEAR’:… Continue reading Change date format in a NetSuite saved search result column
Precautions when sending emails to multiple users from NetSuite through SuiteScript
When sending an email to multiple users from NetSuite through SuiteScript, there are several precautions and best practices to keep in mind: Limit on Recipients: NetSuite allows a maximum of 10 recipients (including recipient, cc, and bcc) for each email. If you need to send an email to more than 10 recipients, you may need… Continue reading Precautions when sending emails to multiple users from NetSuite through SuiteScript
Using Suitelets and Restlets as API – Differences
Both Suitelets and Restlets are used in NetSuite for different purposes. Here’s a comparison: Restlets: They are server-side scripts and interact with NetSuite data3. They can be used with GET, POST, PUT, DELETE requests, making them ideal for building an API to use in another application. They are more suitable for low-bandwidth use cases where… Continue reading Using Suitelets and Restlets as API – Differences
NetSuite User event script VS Workflow for custom buttons
NetSuite workflow and event scripts are both tools that can be used to create custom buttons in NetSuite. While they serve a similar purpose, there are some key differences between the two. Advantages of NetSuite Workflow for Custom Buttons: 1. User-Friendly Interface: NetSuite workflow has a drag-and-drop interface, making it easier for users to create… Continue reading NetSuite User event script VS Workflow for custom buttons
Unable to search keywords in the NetSuite template page – Fix
I recently found that it is not directly possible to search any keywords using the standard browser search method inside the NetSuite template page when the ‘source’ toggle is on. This is because the browser considers the source code section inside the template page as a raw HTML element and not text. This was confusing… Continue reading Unable to search keywords in the NetSuite template page – Fix
Delete multiple custom record entries through NetSuite UI
We can delete any custom record entry by opening it in ‘Edit’ mode and clicking Actions> Delete. But it is very time-consuming to delete a large number of custom record entries one by one in this method. Another option for deleting multiple records is to use a script with a saved search. There is an… Continue reading Delete multiple custom record entries through NetSuite UI
Tips for creating an effective ‘Readme’ file for a software project
A README file in a software project is a text file that provides a detailed description of the project. It serves as a guide for other developers and users, offering information about the project, its purpose, how to install and run it, and any other relevant details. You can find this file in most project… Continue reading Tips for creating an effective ‘Readme’ file for a software project