bool CloseEtlUnpivot(EtlId tEtl, CloseEtlUnpivotArg tArg)
tEtl. Opened ETL task instance moniker.
tArg. Operation execution parameters.
The CloseEtlUnpivot operation closes data extraction settings in the crosstab mode.
To execute the operation, in the tEtl field specify moniker of opened ETL task instance, and in the tArg.save field specify whether the changed settings must be saved. The moniker can be obtained after executing the OpenEtl operation. If the tArg.save field is set to true, the settings will be saved to the source, for which the CreateEtlUnpivot operation was executed.
The operation result determines whether the settings were closed successfully.
Below is the example of closing data extraction settings in the crosstab mode in ETL task. The request contains moniker of opened ETL task instance and returns whether changes should should be saved. The response contains whether settings were closed successfully.
{
"CloseEtlUnpivot" :
{
"tEtl" :
{
"id" : "ENAIMHDOPOEIGOAEIKGJBOMLGNPEKPJEOIFKLAKCKCFCJHKN!M!S!LBCNODJDOPOEIGOAEAACBDDFIJKHDGKNEHKAKNNDFDEABINKC"
},
"tArg" :
{
"save" : "true"
}
}
}
{
"CloseEtlUnpivotResult" : "1"
}
public static bool CloseEtlUnpivot(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseEtlUnpivot()
{
tArg = new CloseEtlUnpivotArg()
{
save = true
},
tEtl = new EtlId() { id = moniker }
};
// Close data extraction settings in the crosstab mode
var result = somClient.CloseEtlUnpivot(tClose);
return result;
}
See also: