Function to send ATS inventory details to brandscope

 The following code can be used to send the Inventory data to brand scope using authentication. var requestObj = {   url: https://integration-test-erp.brandscope.com/api/v2/ats/send_ats.json,     headers: {       ‘cache-control’: ‘no-cache’,       ‘authorization’: ‘Token ‘ + {token},       ‘content-type’: ‘application/json’        },        body: JSON.stringify({  … Continue reading Function to send ATS inventory details to brandscope

Why expandSubResources query parameter in Rest is lagging?

While using ‘expandSubResources = true’,it will expand sublists and subrecords. If the query parameter is not used, the response contains only the body fields of the record, and the sublists and subrecords are represented by links. When ‘expandSubResources=true’ causes lagging or performance issues, it’s typically due to how it impacts the API request and response… Continue reading Why expandSubResources query parameter in Rest is lagging?

Custom Record Set Up and Scripting for Autogeneration of Project ID

Create a custom Record and add the custom Field Add the Script as shown below define([‘N/record’, ‘N/search’, ‘N/log’],     /**  * @param{action} action  */     (record, search, log) => {         /**          * Defines the function definition that is executed before record is submitted.    … Continue reading Custom Record Set Up and Scripting for Autogeneration of Project ID

Web Services Concurrent Users with SuiteCloud Plus

Any user can be designated as concurrent web services user if one or more SuiteCloud Plus license has been purchased. Generally, you can purchase one SuiteCloud Plus license per NetSuite account. Contact your sales representative to discuss any need for additional licenses. Web services and RESTlet concurrency is also governed per account. The new account… Continue reading Web Services Concurrent Users with SuiteCloud Plus

SOAP Cache clearing time for the preferences

Preferences, customizations, and custom fields are cached by SOAP web services sessions, in Create, Read, Update, Delete and search operations. For example, if you enable or disable an accounting preference at  Setup > Accounting > Preferences > Accounting Preferences, your current SOAP web services session still retains the previous setting of the preference. To have… Continue reading SOAP Cache clearing time for the preferences

Request level preferences of SOAP

The available preferences are: disableMandatoryCustomFieldValidation disableSystemNotesForCustomFields ignoreReadOnlyFields runServerSuiteScriptAndWorkflowTriggers warningAsError bodyFieldsOnly pageSize returnSearchColumns

SOAP guidelines when working with both standard and custom fields

If a standard field is set as mandatory in a custom form, the “requiredness” of the field is honored in SOAP web services. If you do not provide value in your SOAP web services request for a field that is set as mandatory in a custom form, an error message is returned. For more information on NetSuite… Continue reading SOAP guidelines when working with both standard and custom fields

Understanding EDIFACT Files

EDIFACT, or Electronic Data Interchange For Administration, Commerce and Transport, is an international standard for electronic data interchange (EDI) ratified by the United Nations. It standardizes transaction sets (business documents), data element directories, and syntax rules, enabling global trade through a common language for business transactions. An EDIFACT transmission consists of one or more interchanges,… Continue reading Understanding EDIFACT Files

Suitescript code for OAuth authorization requests to Salesforce for fetching access token

let endPoint = ‘https://hostname/services/oauth2/token’; let requestBody = {     ‘client_id’: { client_id },     ‘client_secret’: { client_secret },     ‘username’: { username },     ‘password’: { password },     ‘grant_type’: ‘password’ }; let salesRequest = https.post({     url: endPoint,     headers: {         ‘Content-Type’: ‘application/x-www-form-urlencoded’,… Continue reading Suitescript code for OAuth authorization requests to Salesforce for fetching access token