bbeach
04/16/2024, 7:32 PMSteve Goldberg
04/17/2024, 10:10 AM// Look for this
const hostnameStep1 = this.vm ? hostName : `rest${molecule}.<http://netsuite.com|netsuite.com>`;
// Change it to this
const hostnameStep1 = this.vm ? hostName : `system${molecule}.<http://netsuite.com|netsuite.com>`;
In some older versions of the tools, it will look like this:
// Look for this
var hostnameStep1 = this.vm ? hostName : "rest" + molecule + ".<http://netsuite.com|netsuite.com>";
// Change it to this
var hostnameStep1 = this.vm ? hostName : "system" + molecule + ".<http://netsuite.com|netsuite.com>";
bbeach
04/17/2024, 2:03 PMconst molecule = this.molecule ? `.${this.molecule}` : '';
const hostName = this.vm && this.vm.replace(/https?:\/\//, '');
let hostnameStep1;
if (this.vm) {
hostnameStep1 = hostName;
} else if (account) {
hostnameStep1 = `${account}.restlets.api${molecule}.<http://netsuite.com|netsuite.com>`;
} else {
hostnameStep1 = `system${molecule}.<http://netsuite.com|netsuite.com>`;
}
const hostnameStep2 = this.vm || `<https://system>${molecule}.<http://netsuite.com|netsuite.com>`;
const hostnameStep3 = this.vm ? hostName : `.restlets.api${molecule}.<http://netsuite.com|netsuite.com>`;
bbeach
04/17/2024, 2:04 PMconst hostnameStep1 = this.vm ? hostName : `system${molecule}.<http://netsuite.com|netsuite.com>`;
bbeach
04/17/2024, 6:20 PM