1.3 - Filter on Contact History Attributes: TIME Attributes - Vantage Customer Experience

Vantage Customer Experience User Guide

prodname
Vantage Customer Experience
vrm_release
1.3
created_date
December 2020
category
User Guide
featnum
B035-3800-099K

Example 1

Criteria:
-Qualify if: 
-Message 'M1' has been extended 4 times
-In 'SMS' Channel
-For Message Strategy 'Recharge'
-In the last 7 days
-AND 'Text receipt time' is between 1pm and 5pm
 
Expression:
set("extendedCH", contactHistory("response", "extended", "message", "msg1", "messageStrategy", "recharge")) &&
set("extendedOnChannel", contactHistory(extendedCH, "frequency", equalTo(4), "recency", "day", lessThanOrEqual(7))) &&
set("textreceipttimes", contactHistory(extendedOnChannel, "attribute", 
                  "ContactHistory.sms.dcat.textreceipttime", formatTimePeriod("hour"), between(13,17))) && 
count(textreceipttimes) > 0

Example 2

Criteria:
-Qualify if: 
-Message 'M1' has been extended 4 times
-In 'SMS' Channel
-For Message Strategy 'Recharge'
-In the last 7 days
-AND 'Text receipt time' is after 5pm
 
Expression:
set("extendedCH", contactHistory("response", "extended", "message", "msg1", "messageStrategy", "recharge")) &&
set("extendedOnChannel", contactHistory(extendedCH, "frequency", equalTo(4), "recency", "day", lessThanOrEqual(7))) &&
set("textreceipttimes", contactHistory(extendedOnChannel, "attribute", 
                  "ContactHistory.sms.dcat.textreceipttime", formatTimePeriod("hour"), greaterThanOrEqual(17))) && 
count(textreceipttimes) > 0