search.lookupFields Function

In NetSuite’s SuiteScript, the search.lookupFields function is used to perform a direct lookup of a record’s fields without having to load the entire record. This can be useful for retrieving specific field values quickly and efficiently. Here’s a basic example demonstrating how to use search.lookupFields in SuiteScript 2.0: /** * @NApiVersion 2.x * @NScriptType UserEventScript… Continue reading search.lookupFields Function

To add a Custom Search portlet to a page

To add a Custom Search portlet to a page: On the page where you want to display saved search results, click Personalize Dashboard. In the Personalize Dashboard panel, under the Standard Content folder, click or drag the Custom Search item. In the Custom Search portlet, click Set Up. In the Custom Search setup window: Select a saved search from the Search dropdown list. In the Custom Portlet Title field, you can… Continue reading To add a Custom Search portlet to a page

Conversion of larger amounts to words using script

To convert large amounts to words, First get the amount from the required field. Use the following function to convert the amount to words. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } function convertToWords(number) { // Array of units for conversion const units = [”, ‘thousand’, ‘million’, ‘billion’, ‘trillion’, ‘quadrillion’, ‘quintillion’]; // Function to convert… Continue reading Conversion of larger amounts to words using script

Workflow Basics

To customize your NetSuite account with workflows, first enable SuiteFlow in your account. To enable SuiteFlow: Go to Setup > Company > Enable Features > SuiteCloud. In the SuiteCloud tab, check the SuiteFlow box. Click Save. Note: Set the user’s role with permission to use Suiteflow. For access to all SuiteFlow functionality, use the Administrator role. After SuiteFlow is enabled, you can… Continue reading Workflow Basics

Dashboard Layouts

We can choose among four layout types for every page that supports dashboards. Select our preference from the Layout dropdown list in the upper right of the page. The available layout options are as follows: Two-column, narrow on the left. Two-column, narrow on the right. Three-column, wide in the middle. For three-column layouts, the minimum… Continue reading Dashboard Layouts

Search Overview

NetSuite provides a variety of search tools that you can use to retrieve real-time data from your account. You can search for a single record by keywords, return a set of records that match filters you define, customize the display of search results, export results to other applications, email results to other users, and save… Continue reading Search Overview

Deleting a Portlet from a Dashboard

There are three ways to remove portlets: Click Remove in the portlet menu. Click the portlet icon in the Currently Used tab of the Personalize Dashboard palette. As you move your pointer over the portlet icons, the corresponding portlet on your page is outlined. Click Personalize Dashboard in the Settings portlet or the Personalize link in the top right corner of the page.… Continue reading Deleting a Portlet from a Dashboard

Adding a Portlet to a Dashboard

Click Personalize Dashboard in the Settings portlet or the Personalize link in the top right corner of the page. The Personalize Dashboard palette opens at the top of the page. When you click the Currently Used tab, you can see portlets that already appear on your dashboard. If you hover over a portlet in the Currently Used tab, that portlet is highlighted on your dashboard.… Continue reading Adding a Portlet to a Dashboard