このオブジェクトのオリジナルの Entity オブジェクトの表示 ID を戻します。
このメソッドは、このオブジェクトの直接のオリジナルである Entity オブジェクトの表示 ID を取得する場合に使用します。戻された ID は、別の Entity オブジェクトの重複であるオブジェクトに対応する場合があります。ソースまでの一連の重複レコードの追跡方法の詳細については、GetOriginal メソッドを参照してください。
戻された ID は、フォームに表示される障害番号 (フォーマットは SITEnnnnnnn (例えば、PASNY00012343)) を含む文字列です。この ID を非表示のデータベース ID と混同しないでください。データベース ID は、レコードの追跡のためにデータベースによって内部で使用されます。
VBScript
entity.GetOriginalID
Perl
$entity->GetOriginalID();
VBScript
' Display a window indicating which record is
' the original of this record
If entity.IsDuplicate Then
' Get the ID of this record
duplicateID = entity.GetDisplayName
' Get the ID of the original record
originalID = entity.GetOriginalID
OutputDebugString "The parent of record " & duplicateID & _
" is record " & originalID
End If
Perl
# Display a window indicating which record is
# the original of this record
if ($entity->IsDuplicate())
{
# Get the ID of this record
$duplicateID =$entity->GetDisplayName();
# Get the ID of the original record
$originalObj = $entity->GetOriginal();
$originalID = $originalObj->GetDisplayName();
$session->OutputDebugString("The parent of record
".$duplicateID." is record ".$originalID);
}