Outbound HTTPs in an unauthenticated client-side context

The following SuiteScript functions are not allowed in an unauthenticated or untrusted client-side context: • SuiteScript 1.0nlapiRequestURL() nlapiRequestURLwithCredentials() nlapiResolveURL() nlapiSetRedirectURL() All search APIs • SuiteScript 2.xhttp.request(options), http.get(options), http.post(options), http.put(options), http.delete(options) https.request(options), https.get(options), https.post(options), https.put(options), https.delete(options) url.resolveUrl(options) All of N/query All of N/search All of N/dataset All of N/workbook Untrusted contexts include: A client script that has at least… Continue reading Outbound HTTPs in an unauthenticated client-side context

Understanding HTTP and HTTPS

1. Introduction to HTTP and HTTPS HTTP (Hypertext Transfer Protocol): HTTP is a protocol used for transferring data on the web. It forms the foundation of communication between web browsers and servers. Operates on port 80. Data is transmitted in plain text, making it less secure. Ideal for non-sensitive data. HTTPS (HTTP Secure): HTTPS is… Continue reading Understanding HTTP and HTTPS

https.post() method

When you need to send an HTTPS POST request synchronously in NetSuite, the https.post() method is the appropriate choice. This method is designed for scenarios where you require the script to wait for the completion of the HTTP request before proceeding. Example: let response = https.post({ url: url, headers: { ‘Content-Type’: ‘application/json’ }, body: JSON.stringify({… Continue reading https.post() method

https.post.promise method

We cannot use server-side script methods to do operations in client script because it is a client-side script. Hence if we have to get some value from server-side methods, we can use the https.post.promise method. https.post.promise allows client-side scripts to asynchronously send data to and receive responses from server-side scripts (like Suitelets). Hence we can… Continue reading https.post.promise method

Managing HTTPS Calls with the N/https Module in NetSuite

The N/https module in NetSuite is designed to facilitate secure HTTPS calls to third-party services, ensuring that all communications are encrypted. This module provides similar functionalities to the N/http module but restricts communications to the HTTPS protocol only. It can be utilized in both client and server scripts. Key Features and Usage The N/https module… Continue reading Managing HTTPS Calls with the N/https Module in NetSuite

HTTPS GET vs POST for a Portal to NetSuite data sync API

The choice between using HTTPS GET or POST for a data sync API between NetSuite and portal storage depends on the specific requirements and use case of the application. GET requests should be used for retrieving data from the server(NetSuite records), and they can be cached and bookmarked. However, they have limitations on the amount… Continue reading HTTPS GET vs POST for a Portal to NetSuite data sync API

Added a new configuration property

With the 2023.1.2 release Added a new configuration property, Add Headers to SSP Responses, to provide a field in which to enter your security headers. This new property appears in the Advanced tab under the Security subtab.See the following help topics for more information about security headers: HTTPS Header Information Security Subtab Updated text and translation context notes to comply… Continue reading Added a new configuration property

How to Check the SSL certificate of a particular domain is valid or not in the browser.

For checking the validity date of SSL certificate of a domain follow the steps given below: (Currently in the example showing steps in chrome web browser other browsers also have similar steps) Load the domain in the browser you want to test. Click on the padlock icon and then click the connection secure: 3. Then… Continue reading How to Check the SSL certificate of a particular domain is valid or not in the browser.