Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Failed RESTlet authentication
I'm trying to develop a simple form portlet submitting to a RESTlet in the back end. My problem is that I cannot get past the RESTlet authentication. Here are my NLAuth headers:
User-Agent: SuiteScript-Call
Authorization: NLAuth
nlauth_account: TSTDRV1291212
nlauth_email: $email
nlauth_signature: $password
nlauth_role: administrator
Content-Type: application/json
Obviously, replacing '$email' and '$password' for the corresponding values.
The 'nlauth_role' value is the role id in Netsuite.
I'm using Postman to test this and I always get an "401 Authorization Required" status and the following error.
{
"error": {
"code": "USER_ERROR",
"message": "header is not NLAuth scheme [ NLAuth ]"