Venice
SInvce::SeekBySyncReference
 
Seeks a Sales Invoice by synchronization reference.
 
VARIANT_BOOL SeekBySyncReference (
    enum eSeekMode eSeekMode,
    BSTR bsSyncReference
)
 
Key information
This method uses key number 12 (See SwapKey).
This is a unique key.
This is a null key, only the records where pSyncReference is not blank are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pSyncReferenceBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsSyncReference
[in] The synchronization reference of the record. It allows an external application to identify and to find a record in Venice. The value must be blank or unique. No duplicate values are allowed.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSInvce
 
Samples
 
C++
 
// Seek the record with synchronization reference 'EXT14'
if (pSInvce->SeekBySyncReference (smEqual, "EXT14"))
    // Process record data

C#
 
// Seek the record with synchronization reference 'EXT14'
if (oSInvce.SeekBySyncReference (eSeekMode.smEqual, "EXT14"))
    // Process record data

VBS
 
' Seek the record with synchronization reference 'EXT14'
If oSInvce.SeekBySyncReference(smEqual, "EXT14") Then
    ' Process record data
End If

VB.NET
 
' Seek the record with synchronization reference 'EXT14'
If oSInvce.SeekBySyncReference(eSeekMode.smEqual, "EXT14") Then
    ' Process record data
End If