📚 SAP Business One SDK Help

GetBusinessPartnerPropertyList Method
See Also  Example

Description

Retrieves the keys and names of all the business partner properties.

Syntax

Visual Basic
Public Function GetBusinessPartnerPropertyList() As BusinessPartnerPropertiesParams

Example

Getting a list of business partner properties (C#)Copy Code
try 

     BusinessPartnerPropertiesParams getParams; 
     getParams = oBPPropSrv.GetBusinessPartnerPropertyList(); 
 
     String resultSet = ""; 
 
     foreach (BusinessPartnerPropertyParams record in getParams) 
     { 
          resultSet = resultSet + record.PropertyCode + "\t" + record.PropertyName + "\n"; 
     } 
     Interaction.MsgBox(resultSet, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); 

catch (Exception ex) 

     Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); 

See Also