Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.

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

Avatar

Community Advisor

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).

bjoern__koth_1-1729853738627.png

 

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!

Cheers from Switzerland!


Topics

Topics help categorize Community content and increase your ability to discover relevant content.

5 Replies

Avatar

Administrator

@DavidRoss91 @Hey_John @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

Avatar

Community Advisor

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 

Avatar

Community Advisor

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!


Avatar

Administrator

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



Kautuk Sahni

Avatar

Community Advisor

Yeah will do. This discussion has been going on for years now as it seems.

 

Btw @Ankit_Chaudhary I actually got it implemented using Launch SSF and the HTTP API. It's more of a hack, and requires a SSF license, but it actually works (tapping my own shoulders). So, I am basically sending Profile payload in the "data" payload and my SSF rule only evaluates when this is found. From there on, it makes a fetch to the HTTP API. 

 

But yeah, why is this not a standard feature?!  

 

Product Idea created: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-ideas/support-sending-pro...

@kautuk_sahni , @Ankit_Chaudhary , @Hey_John , @DavidRoss91 

Cheers from Switzerland!