LookupBatchTypeNameByBatchName

The LookupBatchTypeNameByBatchName function takes a batch name input parameter and returns the corresponding xactly.xc_batch_type.name. The batch name input parameter should match a value in xactly.xc_user_batch.name.

Syntax

LookupBatchTypeNameByBatchName(<string>)

Return Type

string

Details

Null is returned if the function cannot find a matching value in xactly.xc_batch_type.name for a row in xactly.xc_user_batch.batch_name.

Examples

eval LookupBatchTypeNameByBatchName(‘March Orders 2016’);

screen-shot-2016-10-20-at-9-45-39-am

select batch_id,
batch_name,
LookupBatchTypeNameByBatchName(batch_name)
from xactly.xc_user_batch;

screen-shot-2016-10-20-at-9-45-33-am

Related Functions

LookupBatchIdByName

LookupBatchTypeIdByName

LookupBatchTypeNameByBatchId

LookupBatchTypeNameById