Expand my Community achievements bar.

Write a function in Journey Orchestration to count the number of elements in array object


Level 1

We have ProductID stored in array, now we want to add split in our journey based on number of productID one profile has, if its has just one ProductID or more than one ProductID. I tried to use below function, but it seems not working.

count(#{ExperiencePlatform.ProfileFieldGroup.profile.Events.PriceDrop.ProductID}) > 1

 Please suggest.

0 Replies