Real-Time CDP - alloy sendEvent to update Profile information gets sent to Experience Event dataset and Profile attributes dropped | Community
Skip to main content
bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 25, 2024

Real-Time CDP - alloy sendEvent to update Profile information gets sent to Experience Event dataset and Profile attributes dropped

  • October 25, 2024
  • 2 replies
  • 1131 views

Hi all,

 

I have a POC which should set or update Profile information based upon a web form which information is supposed to be sent through Web SDK / sendEvent.

The Profile schema contains a section for person information such as first name and last name (standard Adobe XDM schemas used).

 

The dataset is updated and contains this field group.

 

Now, when I try to send the information via custom code

 

 

const data = { xdm: { identityMap: { myPersonId: [ { authenticatedState: "ambiguous", id: "12345", primary: true } ] }, person: { name: { firstName: "John", lastName: "Doe" } } } }; alloy("sendEvent", data).then(response => { console.log("Profile updated successfully:", response); }).catch(error => { console.error("Error updating profile:", error); });

 

 

 

I never see any of this data ending up in the Profile dataset.

Upon Assurance debugging, it looks like the dataset ID which is used is that one of my Experience Event instead which does not contain the field group.

 

The event dataset is the only dataset that is actually receiving any kind of data, and I wonder what I am doing wrong or whether it is at all possible to update the Profile without using the API.

 

Any hint is highly appreciated!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

kautuk_sahni
Community Manager
Community Manager
October 28, 2024

@davidross91 @john_man @ankit_chaudhary would you please take a moment to review this question? We would be grateful for any wisdom you could share on this question.

Kautuk Sahni
Ankit_Chaudhary
Community Advisor
Community Advisor
October 29, 2024

Hi @bjoern__koth 

I haven't tried it myself yet but Instead of sending a XDM object using send event try sending a JSON object using streaming API.

streaming api 

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 29, 2024

Hi @ankit_chaudhary 

that's the thing, I don't want to set up something on a server, I would like to use the Web SDK.

It's a basic feature that is missing somehow.

Cheers from Switzerland!
kautuk_sahni
Community Manager
Community Manager
November 8, 2024

@bjoern__koth This is worth sharing as a feature request in the Ideas tab of this community. 

Kautuk Sahni