| GetByKey Method | |
| See Also |
- JdtNum
Specifies the number of the journal transaction (see JdtNum property).
Retrieves one SAP Business One object by its absolute key in the database.
| Visual Basic |
|---|
Public Function GetByKey( _
   ByVal JdtNum As Long _
) As Boolean |
- JdtNum
Specifies the number of the journal transaction (see JdtNum property).
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.
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.