Fields: IEtlPlainFields;
The Fields property returns the object that contains a list of current object input fields.
Sub Main;
Var
MB: IMetabase;
EtlTask: IEtlTask;
ALLLinks: IEtlPlainLinks;
Link: IEtlPlainLink;
Input: IEtlPlainInput;
Fields: IEtlPlainFields;
i: Integer;
Begin
MB:=MetabaseClass.Active;
EtlTask:=MB.ItemById("ETL").Bind As IEtlTask;
ALLLinks:=EtlTask.Links;
Link:=ALLLinks.Item(7);
Input:=Link.DestinationObjectInput;
Fields:=Input.Fields;
i:=Fields.Count;
End Sub Main;
After executing the example the "i" variable contains the number of input fields of the consumer object. The repository object has the ETL identifier.
See also: