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.
Unable to connect to NetSuite from Salesforce
Hello team,
I am unable to generate valid signature from sales force using OAuth 1.0.
I followed all instructions as mentioned in NetSuite. My Signature algorithm is HMAC-SHA256.
Please help.
below lines of code in Salesforce..
Blob sig = Crypto.generateMac('hmacSHA256', Blob.valueOf(baseString), Blob.valueOf(signingkey));
String signature = EncodingUtil.urlEncode(EncodingUtil.base64encode(sig), 'UTF-8');
system.debug('sig'+ sig);
System.debug('Signature: '+signature);
Http http = new Http();
HttpRequest request = new HttpRequest();
String AuthString = 'OAuth realm="xxxxx",oauth_consumer_key="xxxxxxxxxxx475a19359ab93bf7f4f9397ee0f88de66c8408e7f",oauth_token="b8410d1e3f16268240a7627f26b60b54c8e089109xxxxxxxxxx",oauth_signature_method="HMAC-SHA256",oauth_timestamp="'+tnow+'",oauth_nonce="'+nonce+'",oauth_version="1.0",oauth_signature="'+signature+'"';