Ron
05/07/2025, 7:39 PMCeligo AI
05/07/2025, 7:39 PMAI generated answer (using internal Slack threads):If you're having trouble accessing a Restlet, there could be a few reasons for this. Firstly, ensure that your Restlet is deployed correctly in NetSuite and that you have the correct script ID and deployment ID. These are necessary to form the URL for the Restlet. Secondly, make sure you're using the correct HTTP method (GET, POST, PUT, DELETE) that your Restlet is expecting. If you're trying to access a Restlet using a POST request from a third-party application, you need to ensure that your Restlet is set up to handle POST requests. Lastly, authentication could be causing issues. Restlets in NetSuite require authentication, so you need to ensure that you're providing the correct credentials. If you're using token-based authentication, make sure that your token is valid and has the necessary permissions. Here's a general example of how to call a Restlet from Postman: 1. Set the HTTP method to the one your Restlet is expecting (GET, POST, PUT, DELETE). 2. Enter the URL of your Restlet. This should be in the format
https://<ACCOUNT_ID>.<http://suitetalk.api.netsuite.com/services/restlet/<SCRIPT_ID>/<DEPLOY_ID|suitetalk.api.netsuite.com/services/restlet/<SCRIPT_ID>/<DEPLOY_ID>>
.
3. Under the 'Authorization' tab, select 'Type' as 'OAuth 1.0'.
4. Enter your consumer key, consumer secret, token key, and token secret.
5. Click 'Update Request' and then 'Send'.
Remember to replace <ACCOUNT_ID>
, <SCRIPT_ID>
, and <DEPLOY_ID>
with your actual account ID, script ID, and deployment ID.
******
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
05/07/2025, 7:39 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837366045
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832341909
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832265913
Celigo AI
05/07/2025, 7:39 PM