Returns the specified record.
When requesting a state-based record type, the display_name parameter must contain the visible ID of the record (for example, "DEF00013323"). For stateless record types, this parameter must contain the value of the record's unique key field.
To request a record using its database ID instead of its visible ID, use GetEntityByDbId.
VBScript
session.GetEntity(entity_def_name, display_name)
Perl
$session->GetEntity(entity_def_name, display_name);
VBScript
set sessionObj = GetSession
sessionObj.UserLogon "admin", "", "SAMPL", AD_PRIVATE_SESSION, ""
set record1 = sessionObj.GetEntity("defect", "DEF00013323")
Perl
$sessionObj = $entity->GetSession();
$sessionObj->UserLogon("admin","","SAMPL","");
#Get record DEF00013323
$record1 = $sessionObj->GetEntity( "defect", "DEF00013323" );