Suitelet Response HTTP Header Restrictions In addition to the headers outlined in the General Blocked HTTP Headers section, certain headers cannot be manually set when interacting with the http.ServerResponse objects sent by Suitelets. Attempting to set values for any of these headers will result in an SSS_INVALID_HEADER error. The restricted headers are listed below: Allow… Continue reading When calling the Suitelet API, I’m encountering the ‘SSS_INVALID_HEADER’ error.
Author: Manikandan TM
How to get sublist value in suitelet’s submit button action.
let lineCount = request.getLineCount({ group: “custpage_transaction_list” });where group is the id of your sublist. To use getSublistValue() where group is the id of your sublist, name is the id of the field in the sublist and line is the line number
Suitelets and UI Object Best Practices
The following are best practices for Suitelet development using UI objects and custom UI. General Suitelets are ideal for generating NetSuite pages (forms, lists), returning data (XML, text), and redirecting requests.Limit the number of UI objects on a page (< 100 rows for sublists, < 100 options for on demand select fields, < 200 rows… Continue reading Suitelets and UI Object Best Practices
Scheduled Script Best Practices
The following are best practices for scheduled scripts. Genaral guidelines: You should set your scheduled scripts to run during the hours of 2 AM to 6 AM PST. Scripts set to run during the hours of 6 AM to 6 PM PST may not run as quickly due to high database activity. The number of Not… Continue reading Scheduled Script Best Practices
Optimizing SuiteScript Performance
There are certain changes you can make to your scripts to ensure the execute with performance in mind. This may be particularly true for custom scripts. You can see if there are custom scripts in your account at Customization > Scripting > Scripts. The following guidelines are suggested to optimize script performance, General Scripting Guidelines Save… Continue reading Optimizing SuiteScript Performance
Configure Microsoft 365 OAuth Integration (Azure Active Directory Application)
Configure Microsoft 365 OAuth Integration (Azure Active Directory Application) Integration with Microsoft 365 via OAuth 2 API enables users to log in with their Microsoft 365 account and connect their mailbox to the Oro application using OAuth authentication. To achieve this, you need to register a custom Azure application and connect it with your Oro… Continue reading Configure Microsoft 365 OAuth Integration (Azure Active Directory Application)
The NetSuite Intercompany Framework Feature
Introduction The NetSuite Intercompany Framework feature allows you to manage intercompany workflows. Primarily, this feature manages intercompany cross charges and intercompany netting. NetSuite Intercompany Framework Overview So how does the Intercompany Framework feature work? Let’s take a look! Intercompany Cross Charges and Intercompany Netting When the NetSuite Intercompany Framework feature has been enabled, you will… Continue reading The NetSuite Intercompany Framework Feature
How to add an address lookup feature on a customer record.
Using Dynamic Hyperlinks facilitates Google Map integration in NetSuite. For hyperlink fields, you can establish a link to a website by setting dynamic defaults. Dynamic defaults prove beneficial when the exact URL is unknown until information is collected for the record. You may also wish to incorporate information specific to the current logged-in session as… Continue reading How to add an address lookup feature on a customer record.
Merge two arrays and removes all duplicates elements
JavaScript function that merges two arrays and removes all duplicate elements. Test data:var array1 = [1, 2, 3];var array2 = [2, 30, 1];// console.log(merge_array(array1, array2));// Output: [3, 2, 30, 1]
Conversion of integers to English words Using Javascript.
The above javascript code helps to convert the integer numbers to English words. This function can be used inside the suitescript to achieve the integer to English word conversion in Netsuite.