Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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.