Customer Subscription Status
1. isSubscribedToChannel
The isSubscribedToChannel
expression is crucial for messaging compliance and channel management. It helps prevent sending communications to users who have not opted in for a particular communication channel. This is especially important for promotional messages, which are subject to regulations such as CAN-SPAM, GDPR, and CASL, often requiring explicit consent.
Profile: currentCustomer()
Attribute: isSubscribedToChannel
Sub-Attributes: MOBILE, EMAIL, ANDROID, IOS, WHATSAPP, WECHAT, LINE, VIBER, XENGAGE, RCS, ZALO
Data type -> ENUM
Meaning: Check if a customer is subscribed to a particular communication channel**
Syntax: currentCustomer.isSubscribedToChannel("Value")
Example 1: Write a rule to check if the customer is subscribed to email communications. |
---|
currentCustomer.isSubscribedToChannel("EMAIL") |
Example 2: Write a rule to check if the customer is subscribed to SMS communications. |
---|
currentCustomer.isSubscribedToChannel("SMS") |
Example 3: Write a rule to check if the customer is subscribed to SMS and WhatsApp communication. |
---|
currentCustomer.isSubscribedToChannel("SMS")&&Customer.isSubscribedToChannel("WHATSAPP") |
Updated 2 days ago