HI!
I send an event with a profile merge rule.
```
Send, {
"metadata": {
"id": "setContactInfo",
"name": "Copy the received contact info to the current profile",
"description": "Copies the contact info received in a custom event
called 'contactInfoSubmitted' to the current profile"
},
"raiseEventOnlyOnceForSession": true, //
"condition": {
"type": "eventTypeCondition",
"parameterValues": {
"eventTypeId": "contactInfoSubmitted"
}
},
"actions": [
{
"type": "mergeProfilesOnPropertyAction",
"parameterValues": {
"mergeProfilePropertyName": "properties(MSISDN)",
"mergeProfilePropertyValue": "eventProperty::properties(MSISDN)"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(firstName)",
"setPropertyValue": "eventProperty::properties(firstName)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(lastName)",
"setPropertyValue": "eventProperty::properties(lastName)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(email)",
"setPropertyValue": "eventProperty::properties(email)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(MSISDN)",
"setPropertyValue": "eventProperty::properties(MSISDN)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(ScopeID)",
"setPropertyValue": "eventProperty::properties(ScopeID)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(ZoneID)",
"setPropertyValue": "eventProperty::properties(ZoneID)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(deviceBrand)",
"setPropertyValue": "eventProperty::properties(deviceBrand)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(deviceType)",
"setPropertyValue": "eventProperty::properties(deviceType)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(deviceModel)",
"setPropertyValue": "eventProperty::properties(deviceModel)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(country)",
"setPropertyValue": "eventProperty::properties(country)",
"setPropertyStrategy": "alwaysSet"
}
},
{
"type": "setPropertyAction",
"parameterValues": {
"setPropertyName": "properties(city)",
"setPropertyValue": "eventProperty::properties(city)",
"setPropertyStrategy": "alwaysSet"
}
}
]
}
```
I also have a rule to create a counter in this profile.
```
Send, {
"metadata": {
"id": "contactInfoSubmittedScopeCountRule1000",
"name": "Rule Contact Info Submitted Scope 1000 Count Rule",
"description": "Increments a counter for a specific ScopeID 1000
when a contactInfoSubmitted event occurs"
},
"condition": {
"type": "booleanCondition",
"parameterValues": {
"operator": "and",
"subConditions": [
{
"type": "eventTypeCondition",
"parameterValues": {
"eventTypeId": "contactInfoSubmitted"
}
},
{
"type": "eventPropertyCondition",
"parameterValues": {
"propertyName": "properties.ScopeID",
"propertyValue": "1000",
"comparisonOperator": "equals"
}
}
]
}
},
"actions": [
{
"type": "incrementPropertyAction",
"parameterValues": {
"propertyName": "vizits.Scope1000_Count"
}
}
]
}
```
before sending the event via postman I change the session id and delete
cookies, and here is the problem: some counters are reset when sending an
event with the same parameter, and some are counted correctly.
Can you tell me what's wrong?
--
IT Specialist,
System Administration,
Marat Ibatullin.