Returns an indication of whether the entity exists or not.
For stateful records, the display name argument (display_name) is the id string (for example, RAMBU00001234).
For stateless records, display_name is composed of concatenation of all the unique key field values with a space character between. For example, if a project record type has two fields, name and department, and they are both designated as unique key fields, the display_name would be "<name> <department>"
For a project with name "ACME" and department "Finance":
exists_flag = session.EntityExists "Project", "ACME Finance"
For a project with the name "ACME" that has one unique key field, name:
exists_flag = session.EntityExists "Project", "ACME"
VBScript
session.EntityExists entity_def_name, display_name
Perl
$session->EntityExists(entity_def_name, display_name);
VBScript
set sessionObj = GetSession
ResultFromEntityExist = sessionObj.EntityExists("defect", "test00000001")
Perl
$sessionObj = $entityObj->GetSession();
$ResultFromEntityExist = $sessionObj->EntityExists("defect", "test00000001");