해당 오브젝트의 원래 Entity 오브젝트에 대한 시각적 ID를 리턴합니다.
해당 오브젝트의 즉각적 원본인 Entity 오브젝트의 시각적 ID를 가져오려면 이 메소드를 사용하십시오. 리턴된 ID는 다른 Entity 오브젝트의 중복인 오브젝트에 해당합니다. 소스에 대해 역으로 중복 레코드의 문자열을 추적하는 방법에 대한 정보는 GetOriginal 메소드를 참조하십시오.
리턴된 ID는 양식에 표시된 결함 번호를 포함하는 문자열이고 형식은 SITEnnnnnnn(예: "PASNY00012343")입니다. 이 ID를 데이터베이스가 레코드 추적을 보존하기 위해 내부적으로 사용하는 감추어진 데이터베이스 ID와 혼동하지 마십시오.
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); }