SuiteScript 2.x Record Actions and Macros

Overview Macro and action APIs provide ease and flexibility for your scripting. These APIs are supported for all SuiteScript 2.0 client and server script types. Macro and action APIs also can lower governance usage because they can execute complex business logic in one API call instead of multiple API calls. For actions, governance is charged… Continue reading SuiteScript 2.x Record Actions and Macros

Map/Reduce Script (deployed to Netsuite using SDF

1.Create a new project File>new>project 2.open file cabinet folder and right click on the Suitescripts folder select, new > SuiteScript File From the popup window enter script type as Map/reduce script and name . .js file /** * @NApiVersion 2.1 * @NScriptType MapReduceScript */ define([‘N/file’], /** * @param{file} file */ (file) => { /** *… Continue reading Map/Reduce Script (deployed to Netsuite using SDF

Java Script Functions

How to declare a function? function  functionName(){ //body of the function }  How to invoke a  function? functionName(); Function Expression let variable1 = function(){ //body of the function }; variable1(); //calling the function Hoisting works with function declarations but does  not work with function expressions. Eg: // function Declaration functionName(); function  functionName(){ console.log(‘Hello World’); }… Continue reading Java Script Functions