📚 SAP Business One SDK Help

GetByKey Method
See Also 
JdtNum

Specifies the number of the journal transaction (see JdtNum property).

Description

Retrieves one SAP Business One object by its absolute key in the database.

Syntax

Visual Basic
Public Function GetByKey( _
   ByVal JdtNum As Long _
) As Boolean

Parameters

JdtNum

Specifies the number of the journal transaction (see JdtNum property).

Return Type

The method returns True, if it finds an object by the key you specified.

The method returns False, if it cannot find a record with the key you specified.

Remarks

In SAP Business One, every Business Object is assigned with a unique key.

This method is useful when you know the key of an object, or when you want to know whether or not there is an object assigned to the key you specified.

Example

See Also