Create search inside a loop

It seems like you are using search API inside the loop and consumes a lot of governance that would affect the user interaction which is not a good practice. good practice : Create the search inside a function the search result stored to an object format and call it when required, Example :  const mapItemOpt = () => {        let Search = search.create({                type:,          filters:         … Continue reading Create search inside a loop

Governance

“Governance” is the name given to NetSuite’s system for detecting and halting long-running, runaway, or resource-intensive scripts. Each script type has governance limits that it cannot exceed, and there are four types of governance limits in place for each script type. API usage limit Instruction Count limit Timeout limit Memory usage limit Below are a… Continue reading Governance

Email Capture Plugin

Make sure you have Server SuiteScript feature enabled on your NetSuite AccountNavigate to create new Email Plug-In Script Upload or select your newly created NetSuite Email Capture script and select Email Provide detailed meta data about this email capture plugin Activate newly created Email Capture plugin and test out sending in emails to newly created… Continue reading Email Capture Plugin

Avoid Duplicate Invoice

When enabled, the auto-generated numbering feature prevents assigning duplicate numbers to transactions in NetSuite. This ensures that the number cannot be edited and cannot be duplicated. Auto-generated numbering for transactions is enabled by default and cannot be disabled. An administrator can go to Setup > Company > Auto-Generated Numbers. Click the Transactions subtab. To ensure that no duplicate… Continue reading Avoid Duplicate Invoice

Add pagination on suitelet form

You can add pagination by simply write sublistType as STATICLIST eg : let sublist = form.addSublist({ id: ”, type: serverWidget.SublistType.STATICLIST, label: ”, });

How to get details from an Authorized site( Using Basic Auth )

https.get method is used Add url of the site Under authorization add type as ‘Basic Auth’ and add username , password Add required headers If any parameters add it under the params Example Format : https.get({ url: ‘ ‘, authorization:{ type:’Basic Auth’, username:”, password:” }, headers: { ‘ACCESS-TOKEN’: ”, ‘Content-Type’: ‘application/json’, ‘Accept’: ‘application/json’, }, params:{… Continue reading How to get details from an Authorized site( Using Basic Auth )