unomi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Altenburg" <...@fastmail.com>
Subject Merging Events with profile
Date Fri, 01 Feb 2019 06:09:11 GMT
Hi,

I added a rule to unomi to merge profiles:

{
 "metadata": {
 "id": "mergeLogin",
 "name": "Lavita Shop Login",
 "description": "Copy event properties to profile properties on login"
 },
 "condition": {
 "parameterValues": {
 "subConditions": [
 {
 "parameterValues": {
 },
 "type": "loginEventCondition"
 }
 ],
 "operator": "and"
 },
 "type": "booleanCondition"
 },
 "actions": [
 {
 "parameterValues": {
 "mergeProfilePropertyValue": "eventProperty::target.properties(email)",
 "mergeProfilePropertyName": "mergeIdentifier"
 },
 "type": "mergeProfilesOnPropertyAction"
 },
 {
 "parameterValues": {
 },
 "type": "allEventToProfilePropertiesAction"
 }
 ]
}


This is my event body:

{
 "source": {
 "itemId": "website/login",
 "itemType": "Test",
 "scope": "Test"
 },
 "events": [
 {
 "eventType": "login",
 "properties": {},
 "target": {
 "itemId": "max@muster.de",
 "itemType": "login",
 "properties": {
 "preferredLanguage": "de",
 "email": "max@muster.d",
 "firstName": "Max",
 "lastName": "Muster"
 }
 }
 }
 ],
 "requiredProfileProperties": [
 "*"
 ],
 "requiredSessionProperties": [
 "*"
 ]
}

URL is: 
http://unomi.local:8181/context.json?sessionId=062be12d-5a3b-1e59-6017-dfd0aef68c31 <http://116.203.26.206:8181/context.json?sessionId=062be12d-5a3b-1e59-6017-dfd0aef68c31>

My expectation would be that unomi adds the email address to the profile (which was already
added before after a anonomous website visit) and merges all events.

What did I miss?


Thanks,

Andy
Mime
View raw message