Hu Team,
I wanted to configure datastream id dynamicaly based on environment using custom code.
Thanks in advance 🙂
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@YashRe1 You need to create datastreams based on your requirement (Ex: Dev, Production).
and then you need to pass the data element in Adobe Experience Platform Web SDK extension configuration. not in the datastreams creation.
@YashRe1 You can create data element and add below custom code to set dynamically based on environment type.
var libEnv= _satellite.environment.stage;
if (libEnv == "staging")
{rsid= "Enter staging data steam id";}
if (libEnv == "development") {
rsid="Enter development data steam id";}
if (libEnv == "production"){
rsid="Enter production data steam id";}
return rsid;
@Amruthesh_AG I have created data element and added the code but I was not getting option to select the data element in datastream. How to achieve this?
I am new to websdk migration.
Views
Replies
Total Likes
@YashRe1 You need to create datastreams based on your requirement (Ex: Dev, Production).
and then you need to pass the data element in Adobe Experience Platform Web SDK extension configuration. not in the datastreams creation.
@Amruthesh_AG Can you provide the screenshot?
Views
Replies
Total Likes