Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

How to send Event data to two different sandbox

Avatar

Level 4

Hi, 

 

Right now, we mapped Datastream ID inside Web SDK extension to send the data to Sandbox A. But, we have got a request to send the same event data to sandbox B too. any idea?

3 Replies

Avatar

Community Advisor

Hi @MA1985v1 

the Web SDK allows overriding thet datastream in the sendEvent command.
In the Web SDK Launch extension it looks like this.

bjoern__koth_0-1740117460072.png

 

Cheers from Switzerland!


Avatar

Level 4

Hi @bjoern__koth - thanks for the response. we are using custom code send Event method instead of using built-in option. Sandbox A DataStream id referencing we did that inside Adobe Web SDK extension. If we use something like below in onbeforesendEvent, will it work? ultimately, i want to send the event data to both datastream.

 

alloy("sendEvent", {
edgeConfigOverrides: {
datastreamId: "bfa8fe21-6157-42d3-b47a-78310920b39d", //sandbox B temp id
}

Avatar

Community Advisor

Hi @MA1985v1 

looking at the documentation, I would say so.

 

https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/commands/datastream-overrides

 

You should be able to see the correct mapping when you open an Assurance session and look at to what it is finally mapped to.

Cheers from Switzerland!