How to send Event data to two different sandbox | Community
Skip to main content
Level 3
February 20, 2025
Question

How to send Event data to two different sandbox

  • February 20, 2025
  • 1 reply
  • 648 views

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?

1 reply

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 21, 2025

Hi @ma1985v1 

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

 

Cheers from Switzerland!
MA1985v1Author
Level 3
February 25, 2025

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
}

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 25, 2025

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!