Skip to main content
Level 4
févr. 20, 2025 8:40 PM UTC
Question

How to send Event data to two different sandbox

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 commentaires

bjoern-koth
Adobe Employee
Adobe Employee
févr. 21, 2025 5:58 AM UTC

Hi @ma1985v1 

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

 

Traduire
Cheers from Switzerland!
MA1985v1Auteur
Level 4
févr. 25, 2025 5:43 PM UTC

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
}

Traduire
bjoern-koth
Adobe Employee
Adobe Employee
févr. 25, 2025 5:52 PM UTC

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.

Traduire
Cheers from Switzerland!