Entity와 연관된 표시 이름(고유 키)을 리턴합니다.
State-based 레코드 유형의 경우, 고유 키는 레코드의 가시적 ID입니다. ID의 형식은 DBnnnnnn(예: PASNY00012332)입니다. 여기서, DB는 데이터베이스 이름이고 nnnnnn은 레코드 번호입니다.
Stateless 레코드 유형의 경우, 고유 키는 관리자가 정의한 고유 키 필드의 값으로부터 구성됩니다. 고유 키 필드가 하나인 경우, 해당 값이 고유 키가 됩니다. 여러 필드가 고유 키를 구성할 경우, 관리자가 지정한 순서대로 해당 값을 결합합니다. State-based 레코드 유형의 경우, 이 메소드를 호출하는 것은 FieldInfo 오브젝트를 사용하여 "ID" 시스템 필드의 값을 가져오는 것과 동일합니다.
고유한 키를 사용자에게 감추어져 있는 데이터베이스 ID와 혼동하지 마십시오. GetDbId 메소드를 사용하여 데이터베이스 ID를 검색할 수 있습니다.
VBScript
' Get the record ID using 2 different techniques and compare the ' results displayName = GetDisplayName idName = GetFieldValue("id").GetValue If idName <> displayName Then ' Error, these id numbers should match End If
Perl
# Get the record ID using 2 different techniques and compare the # results $displayname = $entity->GetDisplayName(); $idname = $entity->GetFieldValue("id")->GetValue(); if ($idname ne $displayname) { # error, these id numbers should match }