Alterantive way for url.resolveScript

Sends an HTTPS request to a Suitelet and returns the response. Authentication headers are automatically added.

This method can only return an internal Suitelet in trusted contexts for authenticated users. http.requestSuitelet(options) can no longer be used to perform outbound HTTPS requests in an anonymous client-side context, such as for shoppers in a Web site. The options.external parameter is removed as of July in NetSuite 2024.1.

Example of https.requestSuitelet ()

https.requestSuitelet({
    scriptId: "custscript_myScript",
    deploymentId: "custdeploy_myDeployment",
    urlParams: {
        address: address
    }
});

Leave a comment

Your email address will not be published. Required fields are marked *