Nour
06/11/2025, 8:24 AMCeligo AI
06/11/2025, 8:25 AMAI generated answer (using internal Slack threads):To call a Suitelet from Postman, you need to follow these steps: 1. First, ensure that your Suitelet is deployed with the 'Available Without Login' option checked. This allows external applications like Postman to access the Suitelet. 2. Use the
url.resolveScript
function in NetSuite to get the URL of the Suitelet. This function takes the script ID and deployment ID of the Suitelet as parameters and returns a URL that can be used to call the Suitelet.
3. Open Postman and create a new request. Paste the URL you got from the previous step into the request URL field.
4. Set the request method to POST (or GET, depending on what your Suitelet is expecting).
5. If your Suitelet is expecting any parameters, add them to the request in Postman. You can add parameters in the 'Params' or 'Body' section of the request, depending on whether your Suitelet is expecting them as query parameters or in the request body.
6. Click 'Send' to send the request. The Suitelet should receive the request and process it. The response from the Suitelet will be displayed in Postman.
Here is a sample code snippet for getting the Suitelet URL in NetSuite:
javascript
var suiteletUrl = url.resolveScript({
scriptId: 'customscript_my_suitelet',
deploymentId: 'customdeploy_my_suitelet',
returnExternalUrl: true
});
Remember, the scriptId
and deploymentId
should be replaced with the actual IDs of your Suitelet.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
06/11/2025, 8:25 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.850027859
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834012032
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823647797
Celigo AI
06/11/2025, 8:25 AM