IEtlTask.FindById

Syntax

FindById(Id: String): IEtlObject;

Parameters

Id. Task object identifier.

Description

The FindById method searches and returns ETL task object.

Example

Sub UserSub(Input: IEtlPlainRecordSets; Output: IEtlPlainRecordSets);
Var
    MB: IMetabase;
    EtlTask: IEtlTask;
    ETLObj: IEtlObject;
    s: String;
Begin
    MB := MetabaseClass.Active;
    EtlTask := MB.ItemById("ETL").Bind As IEtlTask;
    ETLObj := EtlTask.FindById("i_excel");
    s := ETLObj.Name;
End Sub UserSub;

After executing the example the "s" variable contains name of ETL task object with the i_excel identifier. The repository object has the ETL identifier.

See also:

IEtlTask