Getting unexpected error on this line: crypto.crea...
# suitescript
n
Getting unexpected error on this line: crypto.createHmac({algorithm: crypto.HashAlg.SHA256, key: sKey});
b
crypto.createHmac documents what sKey is supposed to be, its not supposed to be a string
n
I tried that but I don't have the GUID. I am using the self made key using &
var sKey = consumerSecret + '&' + tokenSecret;
b
thats not how it works
you need to use a secret key
n
What should i provide in the secret key?
b
any of the options for crypto.createSecretKey
n
I have tried both GUID and Secret.
They do not exist in the system... are you saying I should create one using the consumerSecret + '&' + tokenSecret?
b
yes, you create the guid or api secret beforehand
n
Okay, thank you