LookupOrderTypeIdByName

Summary

The LookupOrderTypeIdByName function returns the xactly.xc_order_type.order_type_id for the given string input parameter.

Syntax

LookupOrderTypeIdByName(<string>)

Return Type

Long

Details

The function returns null if the input string does not match a name in the xactly.xc_order_type table.

Examples

eval LookupOrderTypeIdByName(‘Revenue’);

screen-shot-2016-10-14-at-3-00-01-pm

select order_type_name,
LookupOrderTypeIdByName(order_type_name),
count(*)
from staging.order_item;

screen-shot-2016-10-14-at-3-00-06-pm

Related Functions

LookupOrderTypeNameById