Suite Commerce Advanced Series #2

Suite Commerce Advanced Series #2

As this is a next blog from the previous series of netsuite solution provider, here we will introduce you about the different versions of Suite commerce advanced. Every year netsuite comes with new and potentially advanced changes in the suite commerce arena where they introduce new extension feature of tool to build a robust and automated content management system which is highly customizable and flexible as per the user’s choice. Being the netsuite solution Read the rest


NetSuite Suite Commerce Advanced (SCA) series #1

AS a NetSuite Solution Provider we want to introduce our new customers about the NetSuite’s Omni-channnel retail E-commerce Solution.In the series of blogs we will talk about new and best things of SuiteCommerce Advanced (SCA) In this blog we come up with basic introduction of SCA which we took reference from NetSuite Portal. Feel free to reach your NetSuite Solution Provider , TheSmilingCoders for proper netsuite implementationnetsuite consultation , netsuite customizationnetsuite Read the rest


Debugging a suitescript in NetSuite

In this NetSuite Training we can use the SuiteScript Debugger to debug server-side scripts and core plug-in implementations.As a netsuite solution provider we recommend you to use the power of debugger .The SuiteScript Debugger provides two debugging modes, which are based on the type of script you want to debug.

Ad hoc Debugging

Enables you to debug code fragments written “on-the-fly.” Withad-hoc debugging  you are debugging a new script or code snippet that does not … Read the rest


How To Overcome Script Execution Time Exceeded Error in Schedule script 2.0?

As a NetSuite Solution Provider we consistently gives focus on optimizad netsuite customization and netsuite Support.
The disadvantage of schedule script in suitescript 2.0 is that yield script functionality which is there in 1.0 has been taken away. Yield script had a great advantage of being able to resume the script from the point it stopped when time or usage limit exceeded.Workaround in schedule suitescript 2.0 to overcome time exceeded error is to monitor
Read the rest

HOW TO SET SUBLIST SUB RECORD VALUES IN SUITE SCRIPT 1.0 AND SuiteScript 2.0

As NetSuite Solution provider we are commited to provide you best NetSuite Customization and NetSuite Support tips.
Subrecord values are retrieved and set in different ways in 1.0 and 2.0. Below examples can be used to understand the difference.

Code example for setting Sublist subrecord in 1.0.

 Note some variable have not been defined. Define them as per your accounts requirements

  var load_inv = nlapiCreateRecord(‘inventoryadjustment’, {recordmode: ‘dynamic’});

load_inv.setFieldValue(‘account’, ‘1019’);

load_inv.setFieldValue(‘adjlocation’, 106);

load_inv.setFieldText(‘custbody_cp_transaction’, ‘Coating zero parent

Read the rest

HOW TO SOURCE A FIELD VALUE USING SAVED SEARCH?

As a NetSuite solution provider we provide you optimal NetSuite Support.
Values of fields can be sourced dynamically from saved searches. Search result should have only one column in the result and it should have summary.For eg: If you want to source customer’s latest sales order date in an custom entity field created for customer record, you can create the search and field as given below:

1) Create a customer search- Make the search

Read the rest

DIFFERENCE BETWEEN CLIENT SCRIPT SAVE FUNCTION AND USER EVENT BEFORE SUBMIT FUNCTION?

A lot of times validation is required on submit of a record and developers can get confused on whether to use client script save function or user event before submit function to perform the validation. The below points can be used to make an informed decision in NetSuite Customization.TRIGGER POINT:
Client script save is triggered only on create, edit and copy.User event before submit is triggered on create, edit, delete, xedit, approve, reject,
Read the rest

SOME FACTS ABOUT NETSUITE SCHEDULED SCRIPT

What are scheduled scripts?Scheduled scripts are Netsuite server side scripts used for processing large amount of data/records.

What is the governance limit of scheduled scripts?10000 units.

How is a scheduled script executed?

In NetSuite Customization Scheduled script can be executed either manually from the script deployment page by clicking on save and execute or it can be executed from the scripts using scheduling api’s or it can be scheduled to run at a

Read the rest

HOW TO CREATE A SEARCH IN SUITESCRIPT 2.0?

To create a search within any 2.0 script, we need to use search module and using its object create filters and columns and then run it. The following code can be used to create a search in SuiteScript 2.0define([‘N/record’, ‘N/search’],

function(record, search) {
function execute(scriptContext) {

var customersearch = search.create({
type: “customer”,
filters: [

search.createFilter(

{
name: ‘isinactive’,
operator: ‘is’,
values:[‘F’]
}),

],
columns: [
search.createColumn({
name: “internalid”,
sort: search.Sort.ASC
}),

“email”,

]
});

var

Read the rest

LOADING A SEARCH IN 2.0 SCRIPT AND OVERCOMING 1000 ROWS LIMIT

An existing search can be loaded or new one can be created in SuiteScript 2.0 and we can also over come the limitation of just 1000 rows being returned in one execution. Below code can be used for this:

var mysearch = search.load({

id: ‘8888’ // enter the existing search id (name or internal id)

});

var fil = search.createFilter({

name: ‘inactive’,

operator: ‘is’,

values: false

});

mysearch.filters.push(fil);

var customersearchResult = mysearch.run().getRange(0, 1000);

if(customersearchResult!=null&&customersearchResult!=”&&customersearchResult!=’ ‘)

Read the rest