Solved

Filter Arrray

  • 22 July 2022
  • 1 reply
  • 65 views

Badge

Hi,

 

I Have data like this

{“item”: {

   “properties”:

      [

         [ “name”: “other1”, “value”: “other”],

         [ “name”: “other2”, “value”: “other”],

         [ “name”: “image”, “value”: “url_image”],

         [ “name”: “other3”, “value”: “other”],

         [ “name”: “other4”, “value”: “other”],

      ]

}}

 

i want to show image use url_image from array properties where name = image 

please help me

icon

Best answer by stephen.trumble 22 July 2022, 20:44

View original

1 reply

Userlevel 7
Badge +60

Hey@dahaaw 

Welcome to the Klaviyo Community! Thank you for asking the community for help with your array.

Depending on what event you are tracking will ultimately determine what syntax to use. I would suggest you track a test event to find the correct event variable and to see how the data populates first, then copy/paste the tag. Most likely the event tag will look like this: 

 {{ event.item.properties.2.value }}

Once you have the proper event tag can use code similar this this example where name = image. 

Hope this helps! Thank you again for being part of the Klaviyo Community!

Reply