Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Getting error during logging in into webservice
string accountId ="12345";
Uri myUri = new Uri("https://webservices.netsuite.com");
serv.CookieContainer = new CookieContainer();
serv.CookieContainer.SetCookies(myUri, "ACCOUNT=" + accountId);
// accountId is the string value of the NetSuite account being logged
Passport passport = new Passport();
passport.email ="___@_______.com";
passport.password ="____";
passport.account="_____";;
Status status2 = (serv.login(passport)).status;
getting the following error:
com.netledger.dto.v2_5.faults.InvalidVersionFault: You must specify the ACCOUNT cookie in the http header in order to login through Web Services. Please see the FAQs on the WS portal for more information.