Attributes - Group Primary Customer's Custom Field.
Profile - Group Primary Customer (groupPrimaryCustomer)
Custom Fields : Custom fields are columns that store special or custom information related to customers, transactions, transaction line-items, coupons, category and so on.
The following are different entries for which you can create custom fields.
- Loyalty registration
- Loyalty transaction
- Customer feedback
- Zone custom fields
- Store custom fields
- Points redemption
- Voucher redemption (coupon redemption)
- Customer advanced feedback
- Customer preferences
- Customer Card
To know how to create a Custom Fields, click here
Attributes : Attributes based on Custom Fields for Customer profile are listed below in the table.
Profile | Data Type | Description | Sub-Attributes |
---|---|---|---|
customFieldValueIncludes | boolean | checks If group Primary customer has some custom field present with particular value | Sub-Attributes 1: custom Field Name Sub-Attributes 2: Value of custom field |
customFieldValueExists | boolean | checks If Primary customer of a group has some custom field present. | Sub-Attribute 1: Custom field Value |
customFieldValueExcludes | boolean | checks If Primary customer of a group has some custom field is not present with particular value | Sub-Attributes 1: custom Field Name Sub-Attributes 2: Value of custom field |
customFieldValueIncludes
Profile: groupPrimaryCustomer
Attribute: customFieldValueIncludes
Data Type: Boolean
Description: Lets you evaluate conditions on a custom field value of the primary member (if a specific custom field value exists for the member).
Sub-Attributes: Custom Field Name, Custom Field Value
Syntax: groupPrimaryCustomer.customFieldValueIncludes(“custom_field_name”,”custom_field_value”)
Example 1: Let’s see we have created a custom field by the name of cities and value includes Delhi, Indore, Bangalore, etc. Now a marketing manager wants to provide incentives to those Primary customers of a group who are from Bangalore. |
---|
Rule: groupPrimaryCustomer.customFieldValueExcludes("cities","Bangalore") |
Example 2: Suppose the college team in your city has won a major championship and you want to celebrate the event by offering discounts to primary customers of a group who had included that sport as their favorite. |
---|
Rule: To issue coupons to customers who had included SportX as their favorite, use the following condition: groupPrimaryCustomer.customFieldValueIncludes("Favorite_Sport","SportX") If the value returned is SportX, then the coupon is issued. |
Example 3: Rule to check if the primary customer of a group is in age group between 25-40 or 40-90 and gender is Male & current transaction basket contains POLO and number of transactions done is greater than 1. |
---|
Rule: (groupPrimaryCustomer.customFieldValueIncludes("age","25-40")||groupPrimaryCustomer.customFieldValueIncludes("age","40-90"))&&(groupPrimaryCustomer.customFieldValueIncludes("gender","Male"))&&(currentTxn.basketIncludes("Producttype","polo"))&&(groupPrimaryCustomer.numberOfVisits>1) |
customFieldValueExcludes
*Profile : groupPrimaryCustomer
Attribute : customFieldValueExcludes
Data Type: Boolean
Description : Lets you evaluate conditions on a custom field value of the customer. (Any value other than the value you mention here)
Sub-Attributes: Custom Field Name, Custom Field Value
Syntax: groupPrimaryCustomer.customFieldValueExcludes(“custom_field_name”,”custom_field_value”)
Example 1: As a marketing manager I want to check if the customer is from homeclub_number and value 12 or 11. |
---|
Rule:groupPrimaryCustomer.customFieldValueExcludes("homeclub_number","12")||groupPrimaryCustomer.customFieldValueExcludes("homeclub_number","11") |
Example 2 : Write an expression to evaluate that primary customer of a group, DVS custom field value is Home lovers and preferred language is not Arabic. |
---|
Rule : groupPrimaryCustomer.clusterValueIncludes("DVS","Home Lovers")&&(groupPrimaryCustomer.customFieldValueExcludes("preferredlanguage","Arabic")) |
customFieldValueExists
Profile : groupPrimaryCustomer
Attribute : customFieldValueExists
Data Type : Boolean
Description : Lets you evaluate conditions on a custom field value of the primary member ( if a specific custom field value exists for the member).
Sub-Attributes: Custom Field Name
Syntax: groupProfileCustomer.customFieldValueExists(“custom_field_name”,”custom_field_value”)
Example 1: Write a rule to check if primary customer of a group has a custom field by the name billdelayed. |
---|
groupProfileCustomer.customFieldValueExists(“billdelayed”) |
Updated 12 months ago