📚 SAP Business One SDK Help

GetDepartmentList Method
See Also  Example

Description

Retrieves the keys and names of all the departments.

Syntax

Visual Basic
Public Function GetDepartmentList() As DepartmentsParams

Example

Getting a list of departments (C#)Copy Code
DepartmentsParams getlistParams; 
getlistParams = oDeptSrv.GetDepartmentList(); 
 
String resultSet = ""; 
 
foreach (DepartmentParams record in getlistParams) 
{ 
    resultSet = resultSet + record.Code + "\t" + record.Name + "\n"; 
} 

See Also