Develop > Programming > System Language reference > List: rtecalls > rtecall("recordexists") function

rtecall("recordexists") function

Specifies whether any records exist that match a particular query regardless of any Mandanten data restrictions. This call does not return any records from the query.

Function

rtecall("recordexists")

Format

$Lexists=rtecall("recordexists", $L.rc, $L.filename, $L.query)

Parameters

The following parameters are valid for the rtecall("recordexists") function:

Parameter Data type Description
"recordexists" String Determines the name of the RTE call, in this case "recordexists".
$L.rc String Provides a more detailed return code. This parameter is not currently used but is reserved for future use.
$L.filename String The name of the Service Manager table to query. For example, contacts or probsummary.
$L.query String The query to be run. The query can be true, false, a string, or a parsed expression. This query ignores all Mandanten restrictions.

Factors

The call returns true if at least one record matches the query.

The call returns false if there are no records that match the query.

Example

rtecall( "recordexists", $L.rc, "contacts", true )

Returns true if there are any records in the contacts table.

rtecall( "recordexists", $L.rc, "device", "logical.name=\"pc001\"" )

Returns true if there is a record in the device table with a logical name of pc001 regardless of whether the current user has access to the record or not.