📚 SAP Business One SDK Help

GetByKey Method
See Also 
ItemCode
Specifies the identification key of the item (see ItemCode property).

Description

Retrieves and sets the values of the object's properties by the object's absolute key from the Company database.

Syntax

Visual Basic
Public Function GetByKey( _
   ByVal ItemCode As String _
) As Boolean

Parameters

ItemCode
Specifies the identification key of the item (see ItemCode property).

Return Type

If the object with the key you specified is found, the method returns True and the properties of the object will be filled with object's data.

If the object with the key you specified is not found, the method returns False and the properties of the object remain unchanged.

See Also