var instform = file.load({ id: ‘fileno’ }); var html = instform.getContents(); var renderObj = render.create(); //render create and add content renderObj.templateContent = html //Adding ThirdParty Libraries renderObj.addCustomDataSource({ format: render.DataSource.OBJECT, alias: “libraryPath”, data: libraryPath //this should be an object or array by strighify version }); var finalRender =… Continue reading Create dynamic HTML page using Data source
Author: Anju Babu
Filtering Sales Orders by Keyword in Document Number or PO# Using Formula (Text) in NetSuite
To filter Sales Orders in NetSuite using a formula that checks whether a given keyword appears in either the Document Number (i.e., tranid) or the PO# (i.e., otherrefnum) field, you can use a Formula (Text) filter in a saved search. Here’s how to structure it: Formula (Text) Filter CASE WHEN {tranid} LIKE ‘%keyword%’ OR {otherrefnum}… Continue reading Filtering Sales Orders by Keyword in Document Number or PO# Using Formula (Text) in NetSuite
What is the N/commerce/recordView Module?
The N/commerce/recordView module is a read-only SuiteScript 2.x module designed to retrieve data from SuiteCommerce-related records, such as: Website records Item records Commerce category records This module is used only for viewing these records — not for creating or updating them. ? Why and When Should You Use It? ? Use it when: 1- You… Continue reading What is the N/commerce/recordView Module?
Required Reconfiguration of Your Domain’s DNS Setup
What is Changing? Beginning May 15, 2025, we will enforce stricter configuration of DNS records for all website domains. Incoming traffic on improperly configured domains will be restricted, which could affect your website functionality and availability. There will be a test window of the changes on March 20, 2025 (00:00 – 23:59 EST), before the actual enforcement… Continue reading Required Reconfiguration of Your Domain’s DNS Setup
Not All Sales Orders Show up in Order History when Multi-Site Feature is Enabled in My Account
Record lists can be filtered using the config field This field is used for filtering the records for the corresponding website – domains Filter Site Option This string specifies how orders/records are filtered. The default value is current. Possible values are: all – Filters orders/records for all websites defined in the current NetSuite account. Shoppers can see… Continue reading Not All Sales Orders Show up in Order History when Multi-Site Feature is Enabled in My Account
Extend the login session time
Issue: An issue where customers are being logged out after 20 minutes on our SuiteCommerce website. Is there a way to extend the login session time? Solution: Create a timer to reload the cart every 5 minutes, making it think somebody is still on the site. var LiveOrderModel = require(‘LiveOrder.Model’); window.setInterval(function() { try{ var model… Continue reading Extend the login session time
SCEM: Additional Parameter Required for Shopper Access to Suitelet URLs
The Shopper role’s access to the Suitelet’s external URL requires an additional parameter. Visitors to your website are assigned the Shopper role to maintain their browsing session. Users can access the external Suitelet URL for Suitelet scripts using the Shopper role with these settings on the Script Deployment record in your NetSuite account: The Available Without… Continue reading SCEM: Additional Parameter Required for Shopper Access to Suitelet URLs
Changes in CMS Records for Site Management Tools
All CMS Page Type custom record scripts are now lazy loaded , which means that all CMS page settings are lazy loaded. Lazy loading is a technique where only essential CMS Page settings are loaded into the short cache of your commerce website. This saves load time because unnecessary content is not loaded. The SuiteCommerce… Continue reading Changes in CMS Records for Site Management Tools
To search for child customers under a parent customer for unlimited levels in NetSuite using a Saved Search
To search for child customers under a parent customer for unlimited levels in NetSuite using a Saved Search, you can still use the Parent (Hierarchy) field, which is designed to search across all levels of hierarchy without needing to manually define the number of levels. Here’s how to create a Saved Search to retrieve all… Continue reading To search for child customers under a parent customer for unlimited levels in NetSuite using a Saved Search
Set Up Store Pickup for Commerce Websites
Define Store Pickup Field Sets You must expose specific field sets to your Commerce website so that the Store Pickup feature can function properly. See Set Up Initial Field Sets for instructions. Important Store pickup fields are specific to the Store Pickup feature and are added to field sets that are already established. Do not replace established fields… Continue reading Set Up Store Pickup for Commerce Websites