01 Apr 2019 04:49 PM - last edited on 27 Apr 2021 01:42 PM by MaciejNeumann
I'm trying to configure a Session Property that references a JavaScript variable. In the session property rule, the interface is demanding that I provide a "key". I have not been able to find any documentation of what the purpose of this "key" is. Why is it not enough to simply reference the name of the JavaScript variable? What should the "key" be set to?
Solved! Go to Solution.
02 Apr 2019 07:38 AM
Key is just the name that will be use as index in DT. You can have different key and display name (optional).
Sebastian
02 Apr 2019 04:55 PM
I'm not really clear as to what is meany by "index"... however, what I have found is that the Display Name value seems to be ignored and the session property shows up in the user session with a label that is identical to the value that I put into the "key" field.
02 Apr 2019 05:14 PM
Key is, as you already notice, the field name given to the detected values.
So if we got a "market" variable the key could be "detected_market". So when you search the string or double object in the session that would be it's name. detected_market = 3 or what ever. Is a required field.
02 Apr 2019 05:50 PM
Thanks Dante. Thanks for clarifying that the key is essentially just the name that you want to assign to the extracted values. It would appear that Display Value doesn't work however.
02 Apr 2019 06:22 PM
I didn't actually try the "Display value", maybe is something as an alias for the key, idk. You also can't create a key, delete it and then create it again. Since an error will show that the key already exists. That is when i understood the meaningn of the fiel. Sadly it take me 3 session properties to understand it. It's a nice really addtion. Hope it reaches the Mobile app also.