AttachmentFields

설명

Entity 오브젝트의 첨부 필드를 포함하는 AttachmentFields 콜렉션을 리턴합니다.

AttachmentFields 특성은 읽기 전용입니다. 이 필드는 프로그램 방식으로 수정할 수 없습니다. 그러나 개별 AttachmentField 오브젝트를 검색한 후 해당 Attachments 콜렉션을 업데이트할 수 있습니다. 다른 말로 하면, 필드 내에서는 개별 Attachment 오브젝트를 추가하거나 제거할 수 있지만 필드 자체(또는 필드 콜렉션)를 수정할 수는 없습니다.

첨부의 개요에 대해서는 Attachments 및 Histories를 참조하십시오.

"첨부 정보 가져오기 및 설정"도 참조하십시오.

구문

VBScript

entity.AttachmentFields 

Perl

$entity->GetAttachmentFields(); 
ID
설명
entity
사용자 데이터 레코드를 나타내는 Entity 오브젝트입니다. 후크 내에서 구문에 이 부분을 생략할 경우, Entity 오브젝트가 현재 데이터 레코드에 해당한다고 가정합니다.
Return value
현재 해당 Entity 오브젝트와 연관된 모든 AttachmentField 오브젝트를 포함하는 AttachmentFields 오브젝트입니다.

예제

VBScript

set fields = entity.AttachmentFields 
For Each fieldObj in fields
   ' Do something with each AttachmentField object 

   ' ... 
Next

Perl

# Get the list of attachment fields

$attachfields = $entity->GetAttachmentFields();



# Find out how many attachment fields there

# are so the for loop can iterate them

$numfields = $attachfields->Count();



for ($x = 0; $x < $numfields ; $x++)

 {

 # Get each attachment field

 $onefield = $attachfields->Item($x);



 # ...do some work with $onefield

 } 

피드백