Hi @arunla ,
To update the profile attributes you need to send data to a profile dataset and not and event dataset. WebSDK sendEvent method send data to an even dataset and cannot update the profile attributes except for identity attributes. Only WebSDK method that can update profile attributes is setConsent but that is also limited to standard fields available in Consents and Preferences field group.
To updates all other standard or custom profile attributes you should use other ingestion methods like HTTP API connector and send data directly to a profile dataset.
Just for validation I uploaded two dummy profiles to AEP with same schema fields as below,
//payload for event dataset
[
{
"_id": "",
"timestamp": "2024-11-12T20:20:39+00:00",
"eventType": "web.webInteractions.linkClick",
"homeAddress": {
"street1": "#1, San Jose"
},
"identityMap": {
"---Person": [
{
"authenticatedState": "authenticated",
"id": "----PersonID_1.0.0",
"primary": true
}
]
},
"mobilePhone": {
"number": "9999999999"
},
"person": {
"birthDayAndMonth": "01-23",
"gender": "male",
"name": {
"firstName": "John",
"lastName": "Doe"
}
},
"personalEmail": {
"address": "john.doe@abc.com"
}
}
]
//payload for profile dataset
[
{
"_id": "",
"personID": "----PersonID_1.0.1",
"homeAddress": {
"street1": "#1, San Jose"
},
"mobilePhone": {
"number": "9999999998"
},
"person": {
"birthDayAndMonth": "02-23",
"gender": "male",
"name": {
"firstName": "John",
"lastName": "Smith"
}
},
"personalEmail": {
"address": "john.smith@abc.com"
}
}
]And in AEP the result were seen as below,
First through event dataset,

Second through profile dataset,

And as you can see the attributes sent directly to profile dataset are updated correctly but the attributes sent to events dataset are not. Although the same attribute fields are available in the events send to first profile they won't land as profile attributes.