October 2007
CUSTOMERID
This intrinsic returns the customer ID associated with contact.
Syntax
The intrinsic must be used in conjunction with the CONTACT DATA intrinsic
and must be assigned to a script call variable before use.
ASSIGN CONTACT DATA "CUSTOMERID" TO contact_custID_cv
Return type
This intrinsic returns a STRING variable. For example, 5004.
Example
The following example assigns the customer ID to a call variable and then
increases the priority of the contact if that customer is identified as a priority
customer.
ASSIGN CONTACT DATA "CUSTOMERID" TO contact_custID_cv
ASSIGN CONTACT DATA "%SKILLSET%SKILLSET" TO contact_skillset_cv
ASSIGN CONTACT DATA "%PRIORITY%PRIORITY" TO contact_priority_cv
IF contact_custID_cv = "5004" THEN
/* identify priority Customer */
ASSIGN 1 TO contact_priority_cv
END IF
QUEUE TO SKILLSET contact_skillset_cv WITH PRIORITY
contact_priority_cv
WAIT 2
Scripting Guide for Communication Server 1000/Meridian 1 PBX
Scripting for Multimedia and Outbound
629