EntityExistsByDbId
Description
Returns an indication of whether the entity exists or not.
Note: This method is deprecated. Use EntityVisibleByDbId.
Note: For more information on DBIDs, see Working with records
Syntax
VBScript
session.EntityExistsByDbId entity_def_name, db_id
Perl
$session->EntityExistsByDbId(entity_def_name, db_id);
- Identifier
- Description
- session
- The Session object that represents the current database-access session.
- entity_def_name
- A String containing the record type (EntityDef) name.
- db_id
- A Long containing the record's unique ID number.
- Return value
- Returns a Boolean True if the Entity exists, False otherwise.
Examples
VBScript
set sessionObj = GetSession
set entityObj = session.GetEntity("defect", "test00000001")
dbid = entity.GetDbId
ResultFromEntityExistDbid = sessionObj.EntityExistsByDbId("defect", dbid)
Perl
$sessionObj = $entityObj->GetSession();
$entityObj = $sessionObj->GetEntity("defect", "test00000001");
$dbid = $entityObj->GetDbId();
$ResultFromEntityExistDbid = $sessionObj->EntityExistsByDbId("defect", dbid);