📚 SAP Business One SDK Help

GetStateList Method
See Also  Example

Description

Retrieves the keys and names of all the states.

Syntax

Visual Basic
Public Function GetStateList() As StatesParams

Example

Get list of states (C#)Copy Code
// Get states service 
CompanyService oCompanyService = oCompany.GetCompanyService(); 
StatesService oStatesService = (StatesService)oCompanyService.GetBusinessService(ServiceTypes.StatesService); 
 
// Get list of states 
SAPbobsCOM.StatesParams oStatesList = oStatesService.GetStateList();

See Also