📚 SAP Business One SDK Help

GetBranchList Method
See Also  Example

Description

Retrieves the keys and names of all the branches.

Syntax

Visual Basic
Public Function GetBranchList() As BranchesParams

Example

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

    try 
    { 
        BranchesParams getlistParams; 
        getlistParams = oBranchSrv.GetBranchList(); 
 
        String resultSet = ""; 
 
        foreach (BranchParams record in getlistParams) 
        { 
            resultSet = resultSet + record.Code + "\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