How do I implement a lookup table which is going to compare my array values to All lookup match?
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.
@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?
I would like to loop through array and fire event for all the matching IDs.
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?
11-09-2015 08:25 AM - edited 11-09-2015 02:17 PM
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.