List Var value not populating in AEP Web SDK Implementation | Community
Skip to main content
Level 2
August 21, 2024
Question

List Var value not populating in AEP Web SDK Implementation

  • August 21, 2024
  • 1 reply
  • 476 views

Hi All,

I used to implement list var and capture in app measurement like this but it is not working in similar fashion with AEP Websdk implementation. Can anybody help me here -

Issue - 

Listvar1 values are not populating in workspace, it is coming as undefined. .

 

I have attached all the relevant screenshots -

1. Data layer structure

 

 

2. Server Call logs 

 

3. ListVar is enabled in admin console as well.

 

4. XDM Mapping in Data Element, Data Element is also created properly.

 

5. Dashboard Screenshot.

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 21, 2024

Hi @parth_gupta 

check your screenshot, list1 is actually meant to contain an array named "list" with the individual items, each of the form (and don't ask me why Adobe made it so complicated)

 

 

{ "value": "some value" }

 

 

 

 

With your sample string (parts of it, I was too lazy to replicate the whole), a list1 data element could look somewhat like this

 

 

// customDimensions.lists.list1.list let list1 = { list: [] }; // you will likely use a _satellite.getVar to access the string value const listData ="cif_2|accountNumber_108|sourceChannel_Branch|sourceChannel_API banking|sourcechannel_businessONLINE"; // break the string into an array of strings and create an object with a value key for each item listData.split("|").forEach(item => list1.list.push({value: item})); return list1;

 

Hope that helps

Cheers from Switzerland!