Hello everyone!!!
We are starting our development to integrate our application with the company Netsuite account. We are in our first steps and our problem is that we are not able to connect with the NetSuite account.
We try to log with Passport, we think that the information we are sending is correct, and when we try to do the login we get a SOAP Exception saying: "Company Id does not exist".
We have been looking for the solution in several Internet forums, but we can't find anyone with the same error.
Here is our code:
namespace SuiteTalkTests { class Program { static void Main(string[] args) { var accountNumber = "1274562"; var service = new DataCenterAwareNetSuiteService(accountNumber); service.applicationInfo = new ApplicationInfo { applicationId = "78T56A65-283F-4EE6-A6EA-4TRT7DBS344D" }; //invoke the login operation Passport passport = new Passport(); passport.account = accountNumber; passport.email = "user@email.com"; RecordRef role = new RecordRef(); role.internalId = "3"; passport.role = role; passport.password = "xxxxxxxx"; Status status = service.login( passport ).status; } } public class DataCenterAwareNetSuiteService : NetSuiteService { public DataCenterAwareNetSuiteService(string account) { var originalUri = new Uri(Url); var urls = getDataCenterUrls(account).dataCenterUrls; var dataCenterUri = new Uri(urls.webservicesDomain + originalUri.PathAndQuery); Url = dataCenterUri.ToString(); } } } Do you know what can we be doing wrong?Regards,Ana