Hi everyone, I'm trying to call a RESTlet deployed...
# suitescript
s
Hi everyone, I'm trying to call a RESTlet deployed in a different NetSuite account using OAuth 1.0 from SuiteScript (2.1). I have the consumer key/secret and token key/secret from the target account, and the RESTlet URL is correct and accessible when tested with Postman. However, I'm having trouble generating the correct OAuth 1.0 header in SuiteScript using
HMAC-SHA256
and
N/crypto
. I’ve followed the standard OAuth flow: building the base string, signing with the key, and encoding the header. But the response from the target account either shows an auth error or nothing at all. Has anyone successfully made a SuiteScript-to-SuiteScript cross-account call using OAuth 1.0? If so, I’d really appreciate: • A working example of generating the OAuth header using
N/crypto
• Any gotchas around formatting the
Authorization
header for NetSuite RESTlets • Advice on cross-account permissions or setup (token roles, integration records, etc.) Thanks in advance!