Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Suitelet - oauth-1.0a and Crypto Library - Restlet Post error -ReferenceError "crypto" is
[LEFT]Hi all,
I'm developing a Suitelet to Post JSON to a Restlet using oauth-1.0a.js (from ddo/oauth-1.0a GitHub) and the Crypto library v3.1.2. I get the following Suitelet error - [LEFT][COLOR=#333333][FONT=Open Sans][SIZE=14px]ReferenceError "crypto" is not defined. This occurs when executing the following line - "[/LEFT]var authorization = oauth.authorize(request_data, token);". I presumed this was because I hadn't loaded the correct Crypto file to the script libraries. Not knowing which file I was missing I loaded all the Crypto library to the script libraries but did not solve problem. I'm missing something and SuiteAnswers provides few answers. I'm missing something. Can anybody help? Thanks.