Call suitelet through post request using after submit in UserEvent Script

  const afterSubmit = (scriptContext) => {             if (scriptContext.type !== scriptContext.UserEventType.EDIT) return;             try {                 let noteRecord = scriptContext.newRecord;                 let noteId = noteRecord.id;          … Continue reading Call suitelet through post request using after submit in UserEvent Script

Post Request Creation

  let request = https.post({                             url: `${SALES_FORCE_API[‘environment’][netsuiteEnvironment][‘endPoind’]}`,                             headers: {                                 ‘Content-Type’: ‘application/json’,… Continue reading Post Request Creation

Understanding Boundary in Multipart/Form-Data

When dealing with file uploads and form submissions in web development, understanding the role of the boundary in multipart/form-data is crucial. This article explains what the boundary parameter is, how it works in multipart/form-data, and provides examples including script code. What is Multipart/Form-Data? multipart/form-data is one of the encoding methods provided by HTML forms to… Continue reading Understanding Boundary in Multipart/Form-Data

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

Extension to call suitelet file to approve SO

The approver can approve the sales order from the Approver detail page. We are created a suitelet to approve and decline the sales order. The request details is added below. it is a post request so pass the details in the body When approving or rejecting an order .To request the suitelet using the service controller… Continue reading Extension to call suitelet file to approve SO

Resolve Error: “HTTP 405 Method Not Allowed” in Suitelets using POSTMAN

While using POST request in POSTMAN ,this type of error may be raised. And GET request may function properly. The error in POST request can be resolved by following methods: Make sure API is correct. Set the key/pair values of the request’s HTTP Headers to “User-Agent : Mozilla/5.0” in the posting tool. The Suitelet will… Continue reading Resolve Error: “HTTP 405 Method Not Allowed” in Suitelets using POSTMAN

PM Review for MPCR in employee center

Requirement Need to create a custom page to list all the mpcr that are open status and the current user is the corresponding project manager (Body or Line). The user is able to select the mpcr and click submit button and the corresponding PM review checkbox will be checked and the corresponding custom fields :… Continue reading PM Review for MPCR in employee center