Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

Iterating array object in condition activity - AJO

Avatar

Level 2

Hello All,

 

I have a requirement to get an event attribute(date field) say 'abc_date' and I have an array object say 'mycollection[]' inside an individual record schema,  this array object has a date field mycollection_date. I need to iterate through this array and get the item from the array which has mycollection_date =  abc_date and if it matches, I want to finally retrieve another boolean field eg mycollection_boolfield from that item with the matching dates and check if the field is true or false.This should be done in a condition activity within a journey

As I see that condition activity in AJO does not support function like each, if else  to iterate and get the required item, is there any way to achieve this ?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@ngd_11 you can leverage the collection management functions to filter through an array and get to the desired value https://experienceleague.adobe.com/docs/journey-optimizer/using/orchestrate-journeys/building-advanc...

View solution in original post

4 Replies

Avatar

Community Advisor

@ngd_11, You can use advanced mode within condition activity to define if else conditions. Take a look at this documentation,

https://experienceleague.adobe.com/docs/journey-optimizer/using/orchestrate-journeys/building-advanc...

Thanks, Sathees

Avatar

Level 2

@SatheeskannaK  Thank you for the response. That helps,  but can you please let me know if there is a way to iterate through an array object attribute (of individual schema) inside a condition activity ?

Avatar

Administrator

Hi @SatheeskannaK,

Can you please help @ngd_11 further with their query?

Thanks!



Sukrity Wadhwa

Avatar

Correct answer by
Employee Advisor

@ngd_11 you can leverage the collection management functions to filter through an array and get to the desired value https://experienceleague.adobe.com/docs/journey-optimizer/using/orchestrate-journeys/building-advanc...