Hey all - I'm editing an old script and I'm runnin...
# suitescript
t
Hey all - I'm editing an old script and I'm running into issues. There is a Restlet that had hardcoded URL's for the Production environment, and I'm now trying to transfer it to the Sandbox environment. I've edited the headers.authorization to include the -sb1 on the nlauth-account, and changed the URL to include the -sb1 tag as well. However, when the script makes the requestURL call, it's coming back with an error message of: {"code" : "USER_ERROR", "message" : "Could not determine customer compid"}. I have been trying to figure out what I'm doing wrong here, but I'm coming up blank. Any suggestions on what I can check?
b
this sounds strange
it sounds like you are using nlapiRequestURL from a server side script to a restlet?
e
Compid refers to the company or account id which is found in the query string
t
I just figured out what the issue was. For nlauth_account, I was adding -sb1 instead of _SB1. All fixed now
e
Makes sense! In the subdomain it's with a hyphen. Everywhere else, underscore