📚 SAP Business One SDK Help

GetEmployeeRoleSetupList Method
See Also  Example

Description

Retrieves the keys and names of all the employee roles.

Syntax

Visual Basic
Public Function GetEmployeeRoleSetupList() As EmployeeRoleSetupParamsCollection

Example

Getting all roles (C#)Copy Code
public void getlist() 

  try 
  { 
      EmployeeRoleSetupParamsCollection getlistParams; 
      getlistParams = oRoleSrv.GetEmployeeRoleSetupList(); 
 
      String resultSet = ""; 
 
      foreach (EmployeeRoleSetupParams record in getlistParams) 
      { 
          resultSet = resultSet + record.TypeID + "\t" + record.Name + "\n"; 
      } 
 
      Interaction.MsgBox(resultSet, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); 
  } 
  catch (Exception ex) 
  { 
      Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); 
  } 
}    

See Also