Returns the Entity object's database ID number.
The return value is a database ID. This value is used internally by the database to keep track of records. Do not confuse this value with the defect ID number returned by GetDisplayName. Les IDBD sont propres à chaque classe d'enregistrements, uniques au sein des enregistrements avec état et uniques au sein des enregistrements sans état.
VBScript
set session = GetSession set record1 = session.GetEntity("defect", "test00000001") dbid = record1.Getdbid set record1 = session.GetEntityByDbId("defect", dbid)
Perl
#Assume you have $entityObj, an Entity Object $sessionObj = $entityObj->GetSession(); $dbid = $entityObj->GetDbId(); #... #Later, to get the record again: $entityObj = $sessionObj->GetEntityByDbId("defect",$dbid);