Accessing the Extensibility API via SC in the Console

To call the extensibility API, begin by accessing the SC object, which is globally available in SuiteCommerce. Through SC, you can access various components and utilities provided by NetSuite’s extensibility framework. This object enables you to interact with the SCA environment and test your extensions directly from the browser console. For example, calling a component… Continue reading Accessing the Extensibility API via SC in the Console

System Notes Show That a Customer Changed Its Own Status

An existing customer fills out the Online Customer Form on the user’s website or Customer Center page. Since there is already an existing record in NetSuite for the customer and the Online Form he fills out handles Duplicate Detection that allows record updates, the customer may inadvertently change their Status (and some other information like… Continue reading System Notes Show That a Customer Changed Its Own Status

Resolving the “ENOENT: No Such File or Directory” Error in Gulp Tasks

When working with Gulp, you may encounter the error: Error: ENOENT: no such file or directory, scandir ‘C:UsersHPDownloadsSuiteCommerce AdvancedsuitecommerceLocalDistributionAdvancedprocessed-templates’ This error typically indicates that Gulp is trying to access a directory that does not exist. Here’s a detailed guide on how to resolve this issue effectively. Step 1: Verify the Specified Directory The first step… Continue reading Resolving the “ENOENT: No Such File or Directory” Error in Gulp Tasks

Employee Labor Cost Search in Netsuite

In NetSuite, tracking employee labor costs is crucial for project profitability analysis and accurate financial reporting. One effective way to achieve this is through a saved search focused on time entries (or time bills). By using SuiteScript, you can dynamically retrieve the labor cost associated with a specific project. The following code snippet demonstrates how… Continue reading Employee Labor Cost Search in Netsuite

Resolve Error: “Unexpected Error: TypeError: Cannot read property “0” from null”

Resource Skills Sets enable users to add information to employee and vendor records about skills and expertise and then search that information for the best matched project resource.   However, there are instances when user navigates to Lists > Employees > My Skill Sets and finds that the page is blank. This is because of an error related to… Continue reading Resolve Error: “Unexpected Error: TypeError: Cannot read property “0” from null”

Resolve Error: “TypeError Cannot read property ‘indexOf’ of null” when Saving Invoice

Error: “TypeError Cannot read property ‘indexOf’ of null” is encountered when saving an Invoice record. This JS_EXCEPTION error occurs when the script is accessing a certain line item field which is currently hidden from the a form. Solution The Custom Form should be updated so that the line item field is displayed. Edit the Custom Form Navigate to Customization > Forms > Transaction Forms  Look… Continue reading Resolve Error: “TypeError Cannot read property ‘indexOf’ of null” when Saving Invoice

Resolve Error: “TypeError Cannot read property ‘setDisplayType’ of null” Returned by nlobjField.setDisplayType

Scenario The user is getting the error: TypeError Cannot read property ‘setDisplayType’ of null when using the nlobj.setDisplayType method on a field pulled using the nlapiGetField API. Solution The nlapiGetField function is not supported for inline fields under any subtab on the Item record and executing it will return null. Thus, an error is received when trying to use the setDisplayType on a… Continue reading Resolve Error: “TypeError Cannot read property ‘setDisplayType’ of null” Returned by nlobjField.setDisplayType

APM for Commerce Action Performance

APM (Application Performance Management) for Commerce Action Performance is a specialized tool in SuiteCommerce designed to monitor, analyze, and optimize the performance of key customer-facing actions on e-commerce sites. This functionality captures detailed timing data for actions such as customer registration, adding items to the cart, and completing purchases. By tracking these metrics, APM helps… Continue reading APM for Commerce Action Performance

SuiteCommerce Analytics Data

SuiteCommerce Analytics Data focuses on leveraging data collected from customer interactions on SuiteCommerce sites to provide meaningful insights that help businesses optimize performance, user experience, and marketing strategies. Despite its potential to drive business growth, this area is often underutilized due to the complexity of setting up and interpreting analytics within NetSuite’s framework. Key Components… Continue reading SuiteCommerce Analytics Data

Custom Content Types and Dynamic Merchandising

Custom Content Types and Dynamic Merchandising are powerful features in SuiteCommerce Advanced (SCA) that enable merchants to deliver tailored content and personalized shopping experiences, improving customer engagement and conversions. Custom Content Types Custom Content Types (CCTs) allow businesses to create reusable and configurable content blocks that can be used across different parts of their site.… Continue reading Custom Content Types and Dynamic Merchandising