AttachmentFields

説明

この Entity オブジェクトの添付ファイル フィールドを含む、AttachmentFields コレクション オブジェクトを戻します。

AttachmentFields プロパティは読み取り専用です。このフィールドはプログラムで変更できません。しかし、個々の AttachmentField オブジェクトを取得すると、その Attachments コレクションを更新できます。つまり、フィールド内では個々の Attachment オブジェクトを追加または削除できますが、フィールド自体 (または、フィールドのコレクション) は変更できません。

attachments の概要については、「Attachments および Histories」を参照してください。

「添付ファイル情報の取得と設定」も参照してください。

構文

VBScript

entity.AttachmentFields 

Perl

$entity->GetAttachmentFields(); 
識別子
説明
entity
Entity オブジェクトは、ユーザー データ レコードを表します。構文のこの部分を省略すると、フック内では、現在のデータ レコードに対応する Entity オブジェクトが想定されます。
戻り値
この 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

 } 

フィードバック