Expand my Community achievements bar.

Passing parameters to data elements via UI %dataElement, true% Help

Avatar

Level 1

Typically you can just use JS to pass parameters to dataElements like such: 

_satellite.getVar("dataElements", {set: false});

But how do you do it in the UI via key value? Maybe like so? Please Help.

%dataElements, {set: false}%

 Please help me understand, I don't see this talked anywhere.

2 Replies

Avatar

Level 4

Hi, 

 

I think you are confusing setVar with getVar. 

You can set values using setVar and retrieve them using getVar. 

 

In the screenshot you have shared, it seems you are trying to pass a value to a parameter named dataElement? (presumably in Adobe Target extension action). 

 

Suppose, you want to pass a value to a parameter, you can first create a data element from Data Element tab in left rails. say its named 'custID', and then can use it in UI either by selecting it from data element icon or using the string %custID%. 

 

Like this, 

V_Sirish_Kaushik1_0-1706297876481.png

 

Refer to this doc for satellite object methods. 

https://experienceleague.adobe.com/docs/experience-platform/tags/client-side/satellite-object.html?l...

 

 

 

 

Avatar

Employee

Did you find the suggested solutions helpful? It would be great if you can  mark the answer as correct for posterity. If you have found out solution yourself, share it with wider audience in the community.