Filter Contact History by Name: Exact Text | Vantage CX - 1.4 - Filter Contact History by Name: Exact Text - Vantage Customer Experience

Vantage Customer Experience User Guide

prodname
Vantage Customer Experience
vrm_release
1.4
created_date
June 2021
category
User Guide
featnum
B035-3800-099K
Use the name of the Message, Channel (both Interactive and Delivery), Response, and Message Strategy to filter contact history. The name special keyword is used as a parameter in the contactHistory expression function. This distinguishes it from filtering by keyname, which is the default mechanism when the name parameter is omitted. Using name for a specific Contact History field is similar to running a SQL query as follows:
select * from contact_history_table where <field type>_name = '<name to search>'
Name is case-sensitive when used in expressions.

Example 1

Criteria:
-Qualify if: 
-Message M1 has been extended or responded to the customer
 
Expression:
set("extendedOrResponded", contactHistory("message", "name", "M1")) &&
count(extendedOrResponded) > 0

Example 2

Criteria:
-Qualify if: 
-A Message has been extended or responded in Channel 'SMS'
 
Expression:
set("extendedOrResponded", contactHistory("channel", "name", "SMS")) &&
count(extendedOrResponded) > 0

Example 3

Criteria:
-Qualify if: 
-A Message has been extended or responded to the customer
-For Message Strategy 'Recharge'
 
Expression:
set("extendedOrResponded", contactHistory("messageStrategy", "name", "Recharge")) &&
count(extendedOrResponded) > 0