How do I implement a lookup table which is going to compare my array values to All lookup match?

Bronze Contributor
Bronze Contributor

How do I implement a lookup table which is going to compare my array values to All lookup match?

 

Example :

itemId : [1,5]

and now I have lookup match for 1,2,3,4 and 5.

 

Currently its only firing event for 1 and it stops execution.

I want to fire event for 1 and 5 both.

3 REPLIES 3

How do I implement a lookup table which is going to compare my array values to All lookup match?

Employee Emeritus

@monik_doshi A Lookup table that is matching an Array will output an Array.

 

What are you doing with the output Array? Are you looping the array or are you just using the first position?

 

Is is possible for you to share more details?

 

Brian

How do I implement a lookup table which is going to compare my array values to All lookup match?

Bronze Contributor
Bronze Contributor

 

I would like to loop through array and fire event for all the matching IDs.

 

Example:

I have product Id of [1,2,4] on page.

Consider I have utag_data.productId = [1,2,4]

 

I am creating a lookup table extension which has lookup value 1,2,3,4 and 5 and its comparting value with productId.

 

When I compare ,It is only firing event for 1. As 1 comes first, It fires event and stops execution.

 

I would like to fire event for 1,2 and 4 as all of them match my lookup table value.

 

How do I implement this?

 

How do I implement a lookup table which is going to compare my array values to All lookup match?

Tealium Employee

Lookup tables are a 1 to 1 relationship when comparing  a 'string' -   it is structured that it will fall out when it hits the **first** match and give you one value to the one destination UDO property.

 

However when the comparison is set to 'variable type = array'  it will increment through the array and set the 'output value' or 'default output' in the same index position of the destination array as the match existed or not in the source array.

 

Also when using 'variable type = array' the desitnation array needs to be defined before the lookup table extension.

 

 

 

Public