Profile : Current Event

CurrentEvent: The current event profile returns the event that is triggered by the event listener, i.e., the event on which the rule is created.

The following table consists of the descriptions of all the attributes of currentEvent.

Attributes - Target based

AttributeDefinitionLink
targetAchievedProvides the numeric value of the actual achievement of the customer for the given target.Learn More
targetDefinedProvides the numerical target value that is defined by the brand
targetExistsVerifies whether the current event contains information about the target.
Example: currentEvent.targetExists("ABC")
targetNameVerifies whether the current event is talking about the target whose name contains the given string.
Example: currentEvent.targetName.contains("AB")
isTargetAchievedEventVerifies whether the current event is for the achievement of a target.
Example: currentEvent.isTargetAchievedEvent
isUnifiedTargetAchievedEventVerifies whether the current event is for the achievement of a unified target.
Example: currentEvent.isUnifiedTargetAchievedEvent.
isStreakAchievedEventVerifies whether the current event is for the achievement of a streak level.
Example: currentEvent.isStreakAchievedEvent
isSubTargetAchievedEventVerifies whether the current event is for the achievement of a sub-target
Example: currentEvent.isSubTargetAchievedEvent
targetMilestoneTriggerVerifies whether the current event is about the specific sub-target.
Example: currentEvent.targetMilestoneTrigger.contains("name of sub-target")
streakNameVerifies whether the current event is about the specific streak-level.
Example: currentEvent.streakName("name of streak level")
streakExistsVerifies whether the current event contains information about the streak-level mentioned.
Example: currentEvent.streakExists("name of streak level")

Attributes - Loyalty Information

AttributeDefinitionLink
previousLoyaltytypeChecks the loyalty status of the customer before the current event. Supported only for CustomerUpdate eventLearn More
currentLoyaltytypeChecks the loyalty status of the customer during the current event. Supported only for CustomerUpdate eventLearn More

Attribute - Custom Field

AttributeDefinitionLink
currentCustomFieldValueValue of custom field after updatingLearn More
previousCustomFieldValueCustomer's mobile number before updatingLearn More