Forum Discussion

elena14's avatar
elena14
Practitioner
2 months ago

Catalog Selections personalization based on array data type

Hello , I am using Selections and want to display some personalization into an email, but apparently it's not working. 

The selection is taking a custom attribute of type array on the user profile and then should display both of the values in the array from the catalog. 

I have used the personalization feature in the email template, but it's not showing up any data.

The Liquid code is as follows:

 

 

{% catalog_selection_items TestNew NewSelection %}
{{ items[0].property_name }}
{{ items[1].property_name }}
{{ items[2].property_name }}

 

 


The selection looks like on the image: So basically I would like the selection to have all of the properties from the catalog that have withdrawn status FALSE and also have all the values in the array of property_instructed_id custom attribute. In this case the user I am testing with has 2 values in the array, but it's not showing up neither of them.

Can you please help out on what might be the issue here? 

Many thanks

1 Reply

  • bob's avatar
    bob
    Specialist

    Are we sure that you can take an array variable and pass that in? I suspect that it's only going to work with scalar values.

    It would be neat though - if it would take all the scalar value in an array, but I can understand why it wouldn't.