LookupCustomerIdByName

Summary

The LookupCustomerIdByName function returns the xactly.xc_customer.customer_id value for the given string input parameter.

Syntax

LookupCustomerIdByName(<string>)

Return Type

Long

Details

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

Examples

eval LookupCustomerIdByName(‘Oceanic Airlines’);

screen-shot-2016-10-14-at-2-23-33-pm

select customer_name,
LookupCustomerIdByName(customer_name),
count(*)
from staging.order_item;

screen-shot-2016-10-14-at-2-23-39-pm

Related Functions

LookupGeographyIdByName

LookupProductIdByName