Handling multiple HTTPS POST request in single Suitelet

In Client Script: In the client script sending multiple HTTPS POST Request //Https request1       let response1 = https.post({         body: JSON.stringify({           “empId”: empId,           “actiontype”: ‘fetch’         }),         url: window.location.href,         headers: {           ‘Content-Type’:‘application/json’         }       }) //Https request2             let response2 = https.post({               body: JSON.stringify({           “”empId”: empId,             “actiontype”: “submit”,             “title”: record.getValue({fieldId: ‘custpage_jj_title’}) || ”,             “toLead”: record.getValue({fieldId: ‘custpage_jj_assign_to’}) || ”,             “status”:… Continue reading Handling multiple HTTPS POST request in single Suitelet

Getting the URL parameter values in client script

Getting the params value from the URL in the client script and perform the actions Syntax: function pageInit(scriptContext) {     window.onbeforeunload = null;     //Getting parameter value from URL     let urlParams = new URLSearchParams(window.location.search);     let employeeId= urlParams.get(’empId’);     let record = scriptContext.currentRecord;     record.setValue({       fieldId: ‘custpage_jj_employee_id’,       value: employeeId     }); } Explanation: window.location-> Object return the string of the current… Continue reading Getting the URL parameter values in client script

Redirecting from one suitelet form to another suitelet form by clicking the Button

let redirectUrl = url.resolveScript({                         scriptId: ‘customscript_jj_sl_login_page, //Script Id of the target suitelet file                         deploymentId: ‘customdeploy_jj_sl_login_page’, //Deployment Id of the target suitelet file                  … Continue reading Redirecting from one suitelet form to another suitelet form by clicking the Button

Converting Time to NetSuite format while working in suitelet script type

function netSuiteTimeFormat(time) {             if (!time) return ”;             let dateObj = new Date(time);             let hours = dateObj.getHours();             let minutes = dateObj.getMinutes();             let period = ‘AM’;             if (hours >= 12) {               period = ‘PM’;               if (hours > 12) {                 hours -= 12;               }             }             if (hours === 0) {               hours = 12;             }             return `${hours}:${minutes < 10… Continue reading Converting Time to NetSuite format while working in suitelet script type

Things to be followed while writing formulas in saved search

To follow: The formula field type should be same as the expected result Example: (Formula (Text), Formula (Numeric)……). Example: Formula (Text) => CASE WHEN ({total} > 1000}) THEN ‘Qualified’ ELSE ‘Not Qualified’ END. Use ‘ ‘ if the formula is displaying the text result. The calculations should be written into the parenthesis. For Concatenation use… Continue reading Things to be followed while writing formulas in saved search

Restrict IF Record Save if the customer deposit transaction total is lesser than sales order total

The below code describes that the sales order record is created with customer deposit transaction. If, the customer deposit transaction total is equal or greater than sales order total it allows Item Fulfillment record to be saved Else, the customer deposit transaction total is lesser than sales order total it restricts to save the Item… Continue reading Restrict IF Record Save if the customer deposit transaction total is lesser than sales order total

Why Customization are important in NetSuite

Importance of Customization in NetSuite Customization plays a pivotal role in maximizing the utility and efficiency of NetSuite, a comprehensive enterprise resource planning (ERP) system offered by Oracle. As businesses grow and evolve, their operational needs become increasingly unique and complex. NetSuite’s robust customization capabilities empower organizations to tailor the platform to suit specific requirements,… Continue reading Why Customization are important in NetSuite

Creating the CSV file contains the current month created customer details and sending the CSV File to the NetSuite Admin using script

Using the Scheduled script, because I need to send a csv file report every month to the NetSuite admin, /**  * @NApiVersion 2.1  * @NScriptType ScheduledScript  */ define([‘N/email’, ‘N/file’, ‘N/record’, ‘N/search’, ‘N/runtime’],   /**  * @param{email} email  * @param{file} file  * @param{record} record  * @param{search} search  * @param{runtime} runtime  */   (email, file, record, search, runtime) =>… Continue reading Creating the CSV file contains the current month created customer details and sending the CSV File to the NetSuite Admin using script

Creating any type of record with the details fetched from the newly created custom form using suitelet script

In Suitelet script the code is given below, when the custom form is filled the customer record is successfully created, any kind of records or custom record also we can able to create using this logic by editing the code as per the required fields. /**  * @NApiVersion 2.1  * @NScriptType Suitelet  */ define([‘N/record’, ‘N/search’,… Continue reading Creating any type of record with the details fetched from the newly created custom form using suitelet script

The Evolution of Industrial Automation: From Assembly Lines to Smart Factories

Introduction: In the realm of manufacturing, the integration of automation has transformed the landscape, revolutionizing processes and productivity. The journey from manual labor to fully automated production lines has been marked by significant advancements in technology and a paradigm shift in how industries operate. This article explores the evolution of industrial automation, from its humble… Continue reading The Evolution of Industrial Automation: From Assembly Lines to Smart Factories