Skip to content

celigo/netsuite-service-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netsuite-service-manager

NetSuite Suitetalk for Java Applications.

	NetSuiteCredential netSuiteCredential = new NetSuiteCredential("email", "password", "account#", "roleID");
//	netSuiteCredential.setNumberOfSeats(1); // Set to more than 1 if SuiteCloud Plus is enabled
	netSuiteCredential.setCompanyId("company_id"); // Set for sso login
	netSuiteCredential.setUserId("user_id"); // Set for sso login
	netSuiteCredential.setPartnerId("partner_id"); // Set for sso login
	netSuiteCredential.setPrivateKey("private_key"); // Set for sso login
	netSuiteCredential.setUseSsoLogin(false); // Set to true if using SSO Login
	
	NetSuiteServicePoolManager netSuiteServicePoolManager = new NetSuiteServicePoolManager();
	netSuiteServicePoolManager.setCredential(netSuiteCredential);
//	netSuiteServicePoolManager.setUseRequestLevelCredentials(false); // Set to true if using request level credentials

	NetSuiteServicePool netSuiteServicePool = new NetSuiteServicePool();
	netSuiteServicePool.setServicePoolManager(netSuiteServicePoolManager);
	
	RecordRef recordRef = new RecordRef();
	recordRef.setInternalId("42");
	recordRef.setType(RecordType.contact);
	
	ReadResponse readResponse = netSuiteServicePool.get(recordRef);
	Contact contact = (Contact) readResponse.getRecord();
	log.info(contact.getFirstName());

About

NetSuite Suitetalk for Java Applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages