HistoryFields

説明

この Entity オブジェクトの履歴フィールドを含む、HistoryFields コレクション オブジェクトを戻します。

このプロパティは読み取り専用です。このフィールドはプログラムで変更できません。履歴オブジェクトの概要については、「History オブジェクト」を参照してください。

構文

VBScript

entity.HistoryFields 

Perl

$entity->GetHistoryFields(); 
識別子
説明
entity
Entity オブジェクトは、ユーザー データ レコードを表します。構文のこの部分を省略すると、フック内では、現在のデータ レコードに対応する Entity オブジェクトが想定されます。
戻り値
この Entity オブジェクトに現在関連付けられている個々のすべての HistoryField オブジェクトを含む HistoryFields オブジェクト

VBScript

set fields = entity.HistoryFields 
For Each fieldObj in fields 
   ' Look at the contents of the HistoryField object 

   ' ... 
Next 

Perl

# Get the list of history fields

$historyfields = $entity->GetHistoryFields();



# Find out how many history fields there

# are so the for loop can iterate them

$numfields = $historyfields->Count();



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

 {

 # Get each history field

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



 # ...do some work with $onefield

 } 

フィードバック