Attributes - Group Primary Customer's Data

Email

Profile : groupPrimaryCustomer
Attribute : Email
Type : String
Sub-Attributes : NA
Operator: contains, exists, isEmpty, isNotNull, isNull, matches, notExists, “==”
Meaning : Primary Customer's email id or checks which organization is in the email of Primary Customer
Syntax : groupPrimaryCustomer.email[Operators][Value]

AttributeSubAttributeOperatorExample
emailNAcontainsContains - use to see if the string contains the defined value.
Example: groupPrimaryCustomer.email.contains("ashish.chelikani")
emailNAexistsExists - Some proper value exists for this string (i.e. source passed a value that was not an empty string)
groupPrimaryCustomer.email.exists()
emailNAisEmptyisEmpty - Similar to notExists
groupPrimaryCustomer.emai.isEmpty(“”)
emailNAisNotNullisNotNull - checks if the the string is NOT Null i.e. some value was passed from source (even an empty string counts)
groupPrimaryCustomer.email.isNotNull(“”)
emailNAisNullisNull - checks if the string is Null i.e. it was not passed from source
groupPrimaryCustomer.email.isNull(“”)
emailNAnotExistsnotExists - The string is either Null or Empty
emailNA==( == ) returns true if both operands have the same value; otherwise, it returns false . The not-equal-to operator ( != ) returns true if the operands don't have the same value; otherwise, it returns false .
groupPrimaryCustomer.email=="[email protected]"
emailNAmatchesMatches - this is used to perform regular expression-based matching on the string.
groupPrimaryCustomer.email.matches("[email protected]")

Example 1: Write a condition to check if the Primary customer email contains string “SHR”
Profile: groupPrimaryCustomer
Attribute: Email
Sub-Attribute: NA
Operator : contains
Rule: groupPrimaryCustomer.email.contains(“SHR”)

Example 2: Write a rule to check if the Primary customer’s number of visits and Primary group customer email is not null.
Profile: groupPrimaryCustomer
Attribute: numberOfVisits and email
Operator : == & isNotNull
Rule: groupPrimaryCustomer.numberOfVisits==1&&groupPrimaryCustomer.email.is.NotNull(“”)

hasInstoreProfile

Profile : groupPrimaryCustomer
Attribute : hasInstoreProfile
Type : Boolean
Meaning : returns True, if the Primary customer is registered and has a instore Profile
Sub-Attribute: NA
Syntax: groupPrimaryCustomer.hasInstoreProfile()
Example: groupPrimaryCustomer.hasInstoreProfile==true

Example1 : write a rule to check if the current has a Instore Profile

Profile: groupPrimaryCustomer
Attribute: hasInstoreProfile
Type: Boolean
Rule: groupPrimaryCustomer.hasinstoreProfile==true

hasWeChatProfile

Profile : groupPrimaryCustomer
Attribute : hasWeChatProfile
Type : Boolean
Meaning : returns True, if the group Primary customer has a WeChat Profile
Sub-Attribute: NA
Syntax: groupPrimaryCustomer.hasWeChatProfile==true

Example1 : write a rule to check if the group Primary customer has a Instore Profile
Profile: groupPrimaryCustomer
Attribute: hasWeChatProfile
Type: Boolean
Rule: groupPrimaryCustomer.hasWeChatProfile()