IEtlTask.FindById

Syntax

FindById(Id: String): IEtlObject;

Parameters

Id - task object identifier.

Description

The FindById method searches and returns ETL task object. An object identifier is passed by the Id parameter.

Example

Sub Main;

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 Main;

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